{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Writing a class to store tick data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "class TickData(object):\n",
    "\t\"\"\" Stores a single unit of data \"\"\"\n",
    "\n",
    "\tdef __init__(self, timestamp='', symbol='',\n",
    "\t\t\t\topen_price=0, close_price=0, total_volume=0):\n",
    "\t\tself.symbol = symbol\n",
    "\t\tself.timestamp = timestamp\n",
    "\t\tself.open_price = open_price\n",
    "\t\tself.close_price = close_price\n",
    "\t\tself.total_volume = total_volume"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Writing a class to store market data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "class MarketData(object):\n",
    "\tdef __init__(self):\n",
    "\t\tself.recent_ticks = dict()  # indexed by symbol\n",
    "\n",
    "\tdef add_tick_data(self, tick_data):\n",
    "\t\tself.recent_ticks[tick_data.symbol] = tick_data\n",
    "\n",
    "\tdef get_open_price(self, symbol):\n",
    "\t\treturn self.get_tick_data(symbol).open_price\n",
    "\n",
    "\tdef get_close_price(self, symbol):\n",
    "\t\treturn self.get_tick_data(symbol).close_price\n",
    "\n",
    "\tdef get_tick_data(self, symbol):\n",
    "\t\treturn self.recent_ticks.get(symbol, TickData())\n",
    "\n",
    "\tdef get_timestamp(self, symbol):\n",
    "\t\treturn self.recent_ticks[symbol].timestamp"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Writing a class to generate sources of market data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "class MarketDataSource(object):\n",
    "    def __init__(self, symbol, tick_event_handler=None, start='', end=''):\n",
    "        self.market_data = MarketData()\n",
    "\n",
    "        self.symbol = symbol\n",
    "        self.tick_event_handler = tick_event_handler\n",
    "        self.start, self.end = start, end\n",
    "        self.df = None\n",
    "\n",
    "    def fetch_historical_prices(self):\n",
    "        import quandl\n",
    "\n",
    "        # Update your Quandl API key here...\n",
    "        QUANDL_API_KEY = 'BCzkk3NDWt7H9yjzx-DY'\n",
    "        quandl.ApiConfig.api_key = QUANDL_API_KEY\n",
    "        df = quandl.get(self.symbol, start_date=self.start, end_date=self.end)\n",
    "        return df\n",
    "\n",
    "    def run(self):\n",
    "        if self.df is None:\n",
    "            self.df = self.fetch_historical_prices()\n",
    "\n",
    "        total_ticks = len(self.df)\n",
    "        print('Processing total_ticks:', total_ticks)\n",
    "\n",
    "        for timestamp, row in self.df.iterrows():\n",
    "            open_price = row['Open']\n",
    "            close_price = row['Close']\n",
    "            volume = row['Volume']\n",
    "\n",
    "            print(timestamp.date(), 'TICK', self.symbol,\n",
    "                  'open:', open_price,\n",
    "                  'close:', close_price)\n",
    "            tick_data = TickData(timestamp, self.symbol, open_price,\n",
    "                                close_price, volume)\n",
    "            self.market_data.add_tick_data(tick_data)\n",
    "\n",
    "            if self.tick_event_handler:\n",
    "                self.tick_event_handler(self.market_data)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Writing the order class"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "class Order(object):\n",
    "\tdef __init__(self, timestamp, symbol, \n",
    "\t\tqty, is_buy, is_market_order, \n",
    "\t\tprice=0\n",
    "\t):\n",
    "\t\tself.timestamp = timestamp\n",
    "\t\tself.symbol = symbol\n",
    "\t\tself.qty = qty\n",
    "\t\tself.price = price\n",
    "\t\tself.is_buy = is_buy\n",
    "\t\tself.is_market_order = is_market_order\n",
    "\t\tself.is_filled = False\n",
    "\t\tself.filled_price = 0\n",
    "\t\tself.filled_time = None\n",
    "\t\tself.filled_qty = 0"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Writing a class to keep track of positions"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "class Position(object):\n",
    "\tdef __init__(self, symbol=''):\n",
    "\t\tself.symbol = symbol\n",
    "\t\tself.buys = self.sells = self.net = 0\n",
    "\t\tself.rpnl = 0\n",
    "\t\tself.position_value = 0\n",
    "\n",
    "\tdef on_position_event(self, is_buy, qty, price):\n",
    "\t\tif is_buy:\n",
    "\t\t\tself.buys += qty\n",
    "\t\telse:\n",
    "\t\t\tself.sells += qty\n",
    "\n",
    "\t\tself.net = self.buys - self.sells\n",
    "\t\tchanged_value = qty * price * (-1 if is_buy else 1)\n",
    "\t\tself.position_value += changed_value\n",
    "\n",
    "\t\tif self.net == 0:\n",
    "\t\t\tself.rpnl = self.position_value\n",
    "\t\t\tself.position_value = 0\n",
    "\n",
    "\tdef calculate_unrealized_pnl(self, price):\n",
    "\t\tif self.net == 0:\n",
    "\t\t\treturn 0\n",
    "\n",
    "\t\tmarket_value = self.net * price\n",
    "\t\tupnl = self.position_value + market_value\n",
    "\t\treturn upnl"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Writing an abstract strategy class"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "from abc import abstractmethod\n",
    "\n",
    "class Strategy:\n",
    "\tdef __init__(self, send_order_event_handler):\n",
    "\t\tself.send_order_event_handler = send_order_event_handler\n",
    "\n",
    "\t@abstractmethod\n",
    "\tdef on_tick_event(self, market_data):\n",
    "\t\traise NotImplementedError('Method is required!')\n",
    "\n",
    "\t@abstractmethod\n",
    "\tdef on_position_event(self, positions):\n",
    "\t\traise NotImplementedError('Method is required!')\n",
    "\n",
    "\tdef send_market_order(self, symbol, qty, is_buy, timestamp):\n",
    "\t\tif self.send_order_event_handler:\n",
    "\t\t\torder = Order(\n",
    "\t\t\t\ttimestamp,\n",
    "\t\t\t\tsymbol,\n",
    "\t\t\t\tqty,\n",
    "\t\t\t\tis_buy,\n",
    "\t\t\t\tis_market_order=True,\n",
    "\t\t\t\tprice=0,\n",
    "\t\t\t)\n",
    "\t\t\tself.send_order_event_handler(order)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Writing a mean-reverting strategy class"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "\n",
    "class MeanRevertingStrategy(Strategy):\n",
    "    def __init__(self, symbol, trade_qty,\n",
    "        send_order_event_handler=None, lookback_intervals=20,\n",
    "        buy_threshold=-1.5, sell_threshold=1.5\n",
    "    ):\n",
    "        super(MeanRevertingStrategy, self).__init__(\n",
    "            send_order_event_handler)\n",
    "\n",
    "        self.symbol = symbol\n",
    "        self.trade_qty = trade_qty\n",
    "        self.lookback_intervals = lookback_intervals\n",
    "        self.buy_threshold = buy_threshold\n",
    "        self.sell_threshold = sell_threshold\n",
    "\n",
    "        self.prices = pd.DataFrame()\n",
    "        self.is_long = self.is_short = False\n",
    "\n",
    "    def on_position_event(self, positions):\n",
    "        position = positions.get(self.symbol)\n",
    "\n",
    "        self.is_long = position and position.net > 0\n",
    "        self.is_short = position and position.net < 0\n",
    "\n",
    "    def on_tick_event(self, market_data):\n",
    "        self.store_prices(market_data)\n",
    "\n",
    "        if len(self.prices) < self.lookback_intervals:\n",
    "            return\n",
    "\n",
    "        self.generate_signals_and_send_order(market_data)\n",
    "\n",
    "    def store_prices(self, market_data):\n",
    "        timestamp = market_data.get_timestamp(self.symbol)\n",
    "        close_price = market_data.get_close_price(self.symbol)\n",
    "        self.prices.loc[timestamp, 'close'] = close_price\n",
    "\n",
    "    def generate_signals_and_send_order(self, market_data):\n",
    "        signal_value = self.calculate_z_score()\n",
    "        timestamp = market_data.get_timestamp(self.symbol)\n",
    "\n",
    "        if self.buy_threshold > signal_value and not self.is_long:\n",
    "            print(timestamp.date(), 'BUY signal')\n",
    "            self.send_market_order(\n",
    "                self.symbol, self.trade_qty, True, timestamp)\n",
    "        elif self.sell_threshold < signal_value and not self.is_short:\n",
    "            print(timestamp.date(), 'SELL signal')\n",
    "            self.send_market_order(\n",
    "                self.symbol, self.trade_qty, False, timestamp)\n",
    "\n",
    "    def calculate_z_score(self):\n",
    "        self.prices = self.prices[-self.lookback_intervals:]\n",
    "        returns = self.prices['close'].pct_change().dropna()\n",
    "        z_score = ((returns - returns.mean()) / returns.std())[-1]\n",
    "        return z_score"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Binding our modules with a backtesting engine"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "class BacktestEngine:\n",
    "\tdef __init__(self, symbol, trade_qty, start='', end=''):\n",
    "\t\tself.symbol = symbol\n",
    "\t\tself.trade_qty = trade_qty\n",
    "\t\tself.market_data_source = MarketDataSource(\n",
    "\t\t\tsymbol,\n",
    "\t\t\ttick_event_handler=self.on_tick_event,\n",
    "\t\t\tstart=start, end=end\n",
    "\t\t)\n",
    "\n",
    "\t\tself.strategy = None\n",
    "\t\tself.unfilled_orders = []\n",
    "\t\tself.positions = dict()\n",
    "\t\tself.df_rpnl = None\n",
    "        \n",
    "\tdef start(self, **kwargs):\n",
    "\t\tprint('Backtest started...')\n",
    "\n",
    "\t\tself.unfilled_orders = []\n",
    "\t\tself.positions = dict()\n",
    "\t\tself.df_rpnl = pd.DataFrame()\n",
    "\n",
    "\t\tself.strategy = MeanRevertingStrategy(\n",
    "\t\t\tself.symbol,\n",
    "\t\t\tself.trade_qty,\n",
    "\t\t\tsend_order_event_handler=self.on_order_received,\n",
    "\t\t\t**kwargs\n",
    "\t\t)\n",
    "\t\tself.market_data_source.run()\n",
    "\n",
    "\t\tprint('Backtest completed.')\n",
    "        \n",
    "\tdef on_order_received(self, order):\n",
    "\t\t\"\"\" Adds an order to the order book \"\"\"\n",
    "\t\tprint(\n",
    "\t\t\torder.timestamp.date(),\n",
    "\t\t\t'ORDER',\n",
    "\t\t\t'BUY' if order.is_buy else 'SELL',\n",
    "\t\t\torder.symbol,\n",
    "\t\t\torder.qty\n",
    "\t\t)\n",
    "\t\tself.unfilled_orders.append(order)\n",
    "        \n",
    "\tdef on_tick_event(self, market_data):\n",
    "\t\tself.match_order_book(market_data)\n",
    "\t\tself.strategy.on_tick_event(market_data)\n",
    "\t\tself.print_position_status(market_data)\n",
    "        \n",
    "\tdef match_order_book(self, market_data):\n",
    "\t\tif len(self.unfilled_orders) > 0:\n",
    "\t\t\tself.unfilled_orders = [\n",
    "\t\t\t\torder for order in self.unfilled_orders\n",
    "\t\t\t\tif self.match_unfilled_orders(order, market_data)\n",
    "\t\t\t]\n",
    "            \n",
    "\tdef match_unfilled_orders(self, order, market_data):\n",
    "\t\tsymbol = order.symbol\n",
    "\t\ttimestamp = market_data.get_timestamp(symbol)\n",
    "\n",
    "\t\t\"\"\" Order is matched and filled \"\"\"\n",
    "\t\tif order.is_market_order and timestamp > order.timestamp:\n",
    "\t\t\topen_price = market_data.get_open_price(symbol)\n",
    "\n",
    "\t\t\torder.is_filled = True\n",
    "\t\t\torder.filled_timestamp = timestamp\n",
    "\t\t\torder.filled_price = open_price\n",
    "\n",
    "\t\t\tself.on_order_filled(\n",
    "\t\t\t\tsymbol, order.qty, order.is_buy,\n",
    "\t\t\t\topen_price, timestamp\n",
    "\t\t\t)\n",
    "\t\t\treturn False\n",
    "\n",
    "\t\treturn True\n",
    "    \n",
    "\tdef on_order_filled(self, symbol, qty, is_buy, filled_price, timestamp):\n",
    "\t\tposition = self.get_position(symbol)\n",
    "\t\tposition.on_position_event(is_buy, qty, filled_price)\n",
    "\t\tself.df_rpnl.loc[timestamp, \"rpnl\"] = position.rpnl\n",
    "\n",
    "\t\tself.strategy.on_position_event(self.positions)\n",
    "\n",
    "\t\tprint(\n",
    "\t\t\ttimestamp.date(),\n",
    "\t\t\t'FILLED', \"BUY\" if is_buy else \"SELL\",\n",
    "\t\t\tqty, symbol, 'at', filled_price\n",
    "\t\t)\n",
    "        \n",
    "\tdef get_position(self, symbol):\n",
    "\t\tif symbol not in self.positions:\n",
    "\t\t\tself.positions[symbol] = Position(symbol)\n",
    "\n",
    "\t\treturn self.positions[symbol]\n",
    "    \n",
    "\tdef print_position_status(self, market_data):\n",
    "\t\tfor symbol, position in self.positions.items():\n",
    "\t\t\tclose_price = market_data.get_close_price(symbol)\n",
    "\t\t\ttimestamp = market_data.get_timestamp(symbol)\n",
    "\n",
    "\t\t\tupnl = position.calculate_unrealized_pnl(close_price)\n",
    "\n",
    "\t\t\tprint(\n",
    "\t\t\t\ttimestamp.date(),\n",
    "\t\t\t\t'POSITION',\n",
    "\t\t\t\t'value:%.3f' % position.position_value,\n",
    "\t\t\t\t'upnl:%.3f' % upnl,\n",
    "\t\t\t\t'rpnl:%.3f' % position.rpnl\n",
    "\t\t\t)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Running our backtesting engine"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [],
   "source": [
    "engine = BacktestEngine(\n",
    "    'WIKI/AAPL', 1,\n",
    "    start='2015-01-01',\n",
    "    end='2017-12-31'\n",
    ")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Backtest started...\n",
      "Processing total_ticks: 753\n",
      "2015-01-02 TICK WIKI/AAPL open: 111.39 close: 109.33\n",
      "2015-01-05 TICK WIKI/AAPL open: 108.29 close: 106.25\n",
      "2015-01-06 TICK WIKI/AAPL open: 106.54 close: 106.26\n",
      "2015-01-07 TICK WIKI/AAPL open: 107.2 close: 107.75\n",
      "2015-01-08 TICK WIKI/AAPL open: 109.23 close: 111.89\n",
      "2015-01-09 TICK WIKI/AAPL open: 112.67 close: 112.01\n",
      "2015-01-12 TICK WIKI/AAPL open: 112.6 close: 109.25\n",
      "2015-01-13 TICK WIKI/AAPL open: 111.43 close: 110.22\n",
      "2015-01-14 TICK WIKI/AAPL open: 109.04 close: 109.8\n",
      "2015-01-15 TICK WIKI/AAPL open: 110.0 close: 106.82\n",
      "2015-01-16 TICK WIKI/AAPL open: 107.03 close: 105.99\n",
      "2015-01-20 TICK WIKI/AAPL open: 107.84 close: 108.72\n",
      "2015-01-21 TICK WIKI/AAPL open: 108.95 close: 109.55\n",
      "2015-01-22 TICK WIKI/AAPL open: 110.26 close: 112.4\n",
      "2015-01-23 TICK WIKI/AAPL open: 112.3 close: 112.98\n",
      "2015-01-26 TICK WIKI/AAPL open: 113.74 close: 113.1\n",
      "2015-01-27 TICK WIKI/AAPL open: 112.42 close: 109.14\n",
      "2015-01-28 TICK WIKI/AAPL open: 117.625 close: 115.31\n",
      "2015-01-29 TICK WIKI/AAPL open: 116.32 close: 118.9\n",
      "2015-01-30 TICK WIKI/AAPL open: 118.4 close: 117.16\n",
      "2015-02-02 TICK WIKI/AAPL open: 118.05 close: 118.63\n",
      "2015-02-03 TICK WIKI/AAPL open: 118.5 close: 118.65\n",
      "2015-02-04 TICK WIKI/AAPL open: 118.5 close: 119.56\n",
      "2015-02-05 TICK WIKI/AAPL open: 120.02 close: 119.94\n",
      "2015-02-06 TICK WIKI/AAPL open: 120.02 close: 118.93\n",
      "2015-02-09 TICK WIKI/AAPL open: 118.55 close: 119.72\n",
      "2015-02-10 TICK WIKI/AAPL open: 120.17 close: 122.02\n",
      "2015-02-11 TICK WIKI/AAPL open: 122.77 close: 124.88\n",
      "2015-02-12 TICK WIKI/AAPL open: 126.06 close: 126.46\n",
      "2015-02-13 TICK WIKI/AAPL open: 127.28 close: 127.08\n",
      "2015-02-17 TICK WIKI/AAPL open: 127.49 close: 127.83\n",
      "2015-02-18 TICK WIKI/AAPL open: 127.625 close: 128.715\n",
      "2015-02-19 TICK WIKI/AAPL open: 128.48 close: 128.45\n",
      "2015-02-20 TICK WIKI/AAPL open: 128.62 close: 129.495\n",
      "2015-02-23 TICK WIKI/AAPL open: 130.02 close: 133.0\n",
      "2015-02-24 TICK WIKI/AAPL open: 132.94 close: 132.17\n",
      "2015-02-25 TICK WIKI/AAPL open: 131.56 close: 128.79\n",
      "2015-02-25 BUY signal\n",
      "2015-02-25 ORDER BUY WIKI/AAPL 1\n",
      "2015-02-26 TICK WIKI/AAPL open: 128.785 close: 130.415\n",
      "2015-02-26 FILLED BUY 1 WIKI/AAPL at 128.785\n",
      "2015-02-26 POSITION value:-128.785 upnl:1.630 rpnl:0.000\n",
      "2015-02-27 TICK WIKI/AAPL open: 130.0 close: 128.46\n",
      "2015-02-27 POSITION value:-128.785 upnl:-0.325 rpnl:0.000\n",
      "2015-03-02 TICK WIKI/AAPL open: 129.25 close: 129.09\n",
      "2015-03-02 POSITION value:-128.785 upnl:0.305 rpnl:0.000\n",
      "2015-03-03 TICK WIKI/AAPL open: 128.96 close: 129.36\n",
      "2015-03-03 POSITION value:-128.785 upnl:0.575 rpnl:0.000\n",
      "2015-03-04 TICK WIKI/AAPL open: 129.1 close: 128.54\n",
      "2015-03-04 POSITION value:-128.785 upnl:-0.245 rpnl:0.000\n",
      "2015-03-05 TICK WIKI/AAPL open: 128.58 close: 126.41\n",
      "2015-03-05 POSITION value:-128.785 upnl:-2.375 rpnl:0.000\n",
      "2015-03-06 TICK WIKI/AAPL open: 128.4 close: 126.6\n",
      "2015-03-06 POSITION value:-128.785 upnl:-2.185 rpnl:0.000\n",
      "2015-03-09 TICK WIKI/AAPL open: 127.96 close: 127.14\n",
      "2015-03-09 POSITION value:-128.785 upnl:-1.645 rpnl:0.000\n",
      "2015-03-10 TICK WIKI/AAPL open: 126.41 close: 124.51\n",
      "2015-03-10 POSITION value:-128.785 upnl:-4.275 rpnl:0.000\n",
      "2015-03-11 TICK WIKI/AAPL open: 124.75 close: 122.24\n",
      "2015-03-11 POSITION value:-128.785 upnl:-6.545 rpnl:0.000\n",
      "2015-03-12 TICK WIKI/AAPL open: 122.31 close: 124.45\n",
      "2015-03-12 POSITION value:-128.785 upnl:-4.335 rpnl:0.000\n",
      "2015-03-13 TICK WIKI/AAPL open: 124.4 close: 123.59\n",
      "2015-03-13 POSITION value:-128.785 upnl:-5.195 rpnl:0.000\n",
      "2015-03-16 TICK WIKI/AAPL open: 123.88 close: 124.95\n",
      "2015-03-16 POSITION value:-128.785 upnl:-3.835 rpnl:0.000\n",
      "2015-03-17 TICK WIKI/AAPL open: 125.9 close: 127.04\n",
      "2015-03-17 POSITION value:-128.785 upnl:-1.745 rpnl:0.000\n",
      "2015-03-18 TICK WIKI/AAPL open: 127.0 close: 128.47\n",
      "2015-03-18 POSITION value:-128.785 upnl:-0.315 rpnl:0.000\n",
      "2015-03-19 TICK WIKI/AAPL open: 128.75 close: 127.495\n",
      "2015-03-19 POSITION value:-128.785 upnl:-1.290 rpnl:0.000\n",
      "2015-03-20 TICK WIKI/AAPL open: 128.25 close: 125.9\n",
      "2015-03-20 POSITION value:-128.785 upnl:-2.885 rpnl:0.000\n",
      "2015-03-23 TICK WIKI/AAPL open: 127.12 close: 127.21\n",
      "2015-03-23 POSITION value:-128.785 upnl:-1.575 rpnl:0.000\n",
      "2015-03-24 TICK WIKI/AAPL open: 127.23 close: 126.69\n",
      "2015-03-24 POSITION value:-128.785 upnl:-2.095 rpnl:0.000\n",
      "2015-03-25 TICK WIKI/AAPL open: 126.54 close: 123.38\n",
      "2015-03-25 POSITION value:-128.785 upnl:-5.405 rpnl:0.000\n",
      "2015-03-26 TICK WIKI/AAPL open: 122.76 close: 124.24\n",
      "2015-03-26 POSITION value:-128.785 upnl:-4.545 rpnl:0.000\n",
      "2015-03-27 TICK WIKI/AAPL open: 124.57 close: 123.25\n",
      "2015-03-27 POSITION value:-128.785 upnl:-5.535 rpnl:0.000\n",
      "2015-03-30 TICK WIKI/AAPL open: 124.05 close: 126.37\n",
      "2015-03-30 SELL signal\n",
      "2015-03-30 ORDER SELL WIKI/AAPL 1\n",
      "2015-03-30 POSITION value:-128.785 upnl:-2.415 rpnl:0.000\n",
      "2015-03-31 TICK WIKI/AAPL open: 126.09 close: 124.43\n",
      "2015-03-31 FILLED SELL 1 WIKI/AAPL at 126.09\n",
      "2015-03-31 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-01 TICK WIKI/AAPL open: 124.82 close: 124.25\n",
      "2015-04-01 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-02 TICK WIKI/AAPL open: 125.03 close: 125.32\n",
      "2015-04-02 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-06 TICK WIKI/AAPL open: 124.47 close: 127.35\n",
      "2015-04-06 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-07 TICK WIKI/AAPL open: 127.64 close: 126.01\n",
      "2015-04-07 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-08 TICK WIKI/AAPL open: 125.85 close: 125.6\n",
      "2015-04-08 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-09 TICK WIKI/AAPL open: 125.85 close: 126.56\n",
      "2015-04-09 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-10 TICK WIKI/AAPL open: 125.95 close: 127.1\n",
      "2015-04-10 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-13 TICK WIKI/AAPL open: 128.37 close: 126.85\n",
      "2015-04-13 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-14 TICK WIKI/AAPL open: 127.0 close: 126.3\n",
      "2015-04-14 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-15 TICK WIKI/AAPL open: 126.41 close: 126.78\n",
      "2015-04-15 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-16 TICK WIKI/AAPL open: 126.28 close: 126.17\n",
      "2015-04-16 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-17 TICK WIKI/AAPL open: 125.55 close: 124.75\n",
      "2015-04-17 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-20 TICK WIKI/AAPL open: 125.57 close: 127.6\n",
      "2015-04-20 SELL signal\n",
      "2015-04-20 ORDER SELL WIKI/AAPL 1\n",
      "2015-04-20 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-21 TICK WIKI/AAPL open: 128.1 close: 126.91\n",
      "2015-04-21 FILLED SELL 1 WIKI/AAPL at 128.1\n",
      "2015-04-21 POSITION value:128.100 upnl:1.190 rpnl:-2.695\n",
      "2015-04-22 TICK WIKI/AAPL open: 126.99 close: 128.62\n",
      "2015-04-22 POSITION value:128.100 upnl:-0.520 rpnl:-2.695\n",
      "2015-04-23 TICK WIKI/AAPL open: 128.3 close: 129.67\n",
      "2015-04-23 POSITION value:128.100 upnl:-1.570 rpnl:-2.695\n",
      "2015-04-24 TICK WIKI/AAPL open: 130.49 close: 130.28\n",
      "2015-04-24 POSITION value:128.100 upnl:-2.180 rpnl:-2.695\n",
      "2015-04-27 TICK WIKI/AAPL open: 132.31 close: 132.65\n",
      "2015-04-27 POSITION value:128.100 upnl:-4.550 rpnl:-2.695\n",
      "2015-04-28 TICK WIKI/AAPL open: 134.455 close: 130.56\n",
      "2015-04-28 BUY signal\n",
      "2015-04-28 ORDER BUY WIKI/AAPL 1\n",
      "2015-04-28 POSITION value:128.100 upnl:-2.460 rpnl:-2.695\n",
      "2015-04-29 TICK WIKI/AAPL open: 130.16 close: 128.64\n",
      "2015-04-29 FILLED BUY 1 WIKI/AAPL at 130.16\n",
      "2015-04-29 POSITION value:0.000 upnl:0.000 rpnl:-2.060\n",
      "2015-04-30 TICK WIKI/AAPL open: 127.5 close: 125.15\n",
      "2015-04-30 BUY signal\n",
      "2015-04-30 ORDER BUY WIKI/AAPL 1\n",
      "2015-04-30 POSITION value:0.000 upnl:0.000 rpnl:-2.060\n",
      "2015-05-01 TICK WIKI/AAPL open: 126.1 close: 128.95\n",
      "2015-05-01 FILLED BUY 1 WIKI/AAPL at 126.1\n",
      "2015-05-01 SELL signal\n",
      "2015-05-01 ORDER SELL WIKI/AAPL 1\n",
      "2015-05-01 POSITION value:-126.100 upnl:2.850 rpnl:-2.060\n",
      "2015-05-04 TICK WIKI/AAPL open: 129.5 close: 128.7\n",
      "2015-05-04 FILLED SELL 1 WIKI/AAPL at 129.5\n",
      "2015-05-04 POSITION value:0.000 upnl:0.000 rpnl:3.400\n",
      "2015-05-05 TICK WIKI/AAPL open: 128.15 close: 125.8\n",
      "2015-05-05 BUY signal\n",
      "2015-05-05 ORDER BUY WIKI/AAPL 1\n",
      "2015-05-05 POSITION value:0.000 upnl:0.000 rpnl:3.400\n",
      "2015-05-06 TICK WIKI/AAPL open: 126.56 close: 125.01\n",
      "2015-05-06 FILLED BUY 1 WIKI/AAPL at 126.56\n",
      "2015-05-06 POSITION value:-126.560 upnl:-1.550 rpnl:3.400\n",
      "2015-05-07 TICK WIKI/AAPL open: 124.77 close: 125.26\n",
      "2015-05-07 POSITION value:-126.560 upnl:-1.300 rpnl:3.400\n",
      "2015-05-08 TICK WIKI/AAPL open: 126.68 close: 127.62\n",
      "2015-05-08 POSITION value:-126.560 upnl:1.060 rpnl:3.400\n",
      "2015-05-11 TICK WIKI/AAPL open: 127.39 close: 126.32\n",
      "2015-05-11 POSITION value:-126.560 upnl:-0.240 rpnl:3.400\n",
      "2015-05-12 TICK WIKI/AAPL open: 125.6 close: 125.865\n",
      "2015-05-12 POSITION value:-126.560 upnl:-0.695 rpnl:3.400\n",
      "2015-05-13 TICK WIKI/AAPL open: 126.15 close: 126.01\n",
      "2015-05-13 POSITION value:-126.560 upnl:-0.550 rpnl:3.400\n",
      "2015-05-14 TICK WIKI/AAPL open: 127.41 close: 128.95\n",
      "2015-05-14 POSITION value:-126.560 upnl:2.390 rpnl:3.400\n",
      "2015-05-15 TICK WIKI/AAPL open: 129.07 close: 128.77\n",
      "2015-05-15 POSITION value:-126.560 upnl:2.210 rpnl:3.400\n",
      "2015-05-18 TICK WIKI/AAPL open: 128.38 close: 130.19\n",
      "2015-05-18 POSITION value:-126.560 upnl:3.630 rpnl:3.400\n",
      "2015-05-19 TICK WIKI/AAPL open: 130.69 close: 130.07\n",
      "2015-05-19 POSITION value:-126.560 upnl:3.510 rpnl:3.400\n",
      "2015-05-20 TICK WIKI/AAPL open: 130.0 close: 130.06\n",
      "2015-05-20 POSITION value:-126.560 upnl:3.500 rpnl:3.400\n",
      "2015-05-21 TICK WIKI/AAPL open: 130.07 close: 131.39\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2015-05-21 POSITION value:-126.560 upnl:4.830 rpnl:3.400\n",
      "2015-05-22 TICK WIKI/AAPL open: 131.6 close: 132.54\n",
      "2015-05-22 POSITION value:-126.560 upnl:5.980 rpnl:3.400\n",
      "2015-05-26 TICK WIKI/AAPL open: 132.6 close: 129.62\n",
      "2015-05-26 POSITION value:-126.560 upnl:3.060 rpnl:3.400\n",
      "2015-05-27 TICK WIKI/AAPL open: 130.34 close: 132.045\n",
      "2015-05-27 POSITION value:-126.560 upnl:5.485 rpnl:3.400\n",
      "2015-05-28 TICK WIKI/AAPL open: 131.86 close: 131.78\n",
      "2015-05-28 POSITION value:-126.560 upnl:5.220 rpnl:3.400\n",
      "2015-05-29 TICK WIKI/AAPL open: 131.23 close: 130.28\n",
      "2015-05-29 POSITION value:-126.560 upnl:3.720 rpnl:3.400\n",
      "2015-06-01 TICK WIKI/AAPL open: 131.2 close: 130.535\n",
      "2015-06-01 POSITION value:-126.560 upnl:3.975 rpnl:3.400\n",
      "2015-06-02 TICK WIKI/AAPL open: 129.86 close: 129.96\n",
      "2015-06-02 POSITION value:-126.560 upnl:3.400 rpnl:3.400\n",
      "2015-06-03 TICK WIKI/AAPL open: 130.66 close: 130.12\n",
      "2015-06-03 POSITION value:-126.560 upnl:3.560 rpnl:3.400\n",
      "2015-06-04 TICK WIKI/AAPL open: 129.58 close: 129.36\n",
      "2015-06-04 POSITION value:-126.560 upnl:2.800 rpnl:3.400\n",
      "2015-06-05 TICK WIKI/AAPL open: 129.5 close: 128.65\n",
      "2015-06-05 POSITION value:-126.560 upnl:2.090 rpnl:3.400\n",
      "2015-06-08 TICK WIKI/AAPL open: 128.9 close: 127.8\n",
      "2015-06-08 POSITION value:-126.560 upnl:1.240 rpnl:3.400\n",
      "2015-06-09 TICK WIKI/AAPL open: 126.7 close: 127.42\n",
      "2015-06-09 POSITION value:-126.560 upnl:0.860 rpnl:3.400\n",
      "2015-06-10 TICK WIKI/AAPL open: 127.92 close: 128.88\n",
      "2015-06-10 POSITION value:-126.560 upnl:2.320 rpnl:3.400\n",
      "2015-06-11 TICK WIKI/AAPL open: 129.18 close: 128.59\n",
      "2015-06-11 POSITION value:-126.560 upnl:2.030 rpnl:3.400\n",
      "2015-06-12 TICK WIKI/AAPL open: 128.185 close: 127.17\n",
      "2015-06-12 POSITION value:-126.560 upnl:0.610 rpnl:3.400\n",
      "2015-06-15 TICK WIKI/AAPL open: 126.1 close: 126.92\n",
      "2015-06-15 POSITION value:-126.560 upnl:0.360 rpnl:3.400\n",
      "2015-06-16 TICK WIKI/AAPL open: 127.03 close: 127.6\n",
      "2015-06-16 POSITION value:-126.560 upnl:1.040 rpnl:3.400\n",
      "2015-06-17 TICK WIKI/AAPL open: 127.72 close: 127.3\n",
      "2015-06-17 POSITION value:-126.560 upnl:0.740 rpnl:3.400\n",
      "2015-06-18 TICK WIKI/AAPL open: 127.23 close: 127.88\n",
      "2015-06-18 POSITION value:-126.560 upnl:1.320 rpnl:3.400\n",
      "2015-06-19 TICK WIKI/AAPL open: 127.71 close: 126.6\n",
      "2015-06-19 POSITION value:-126.560 upnl:0.040 rpnl:3.400\n",
      "2015-06-22 TICK WIKI/AAPL open: 127.49 close: 127.61\n",
      "2015-06-22 POSITION value:-126.560 upnl:1.050 rpnl:3.400\n",
      "2015-06-23 TICK WIKI/AAPL open: 127.48 close: 127.03\n",
      "2015-06-23 POSITION value:-126.560 upnl:0.470 rpnl:3.400\n",
      "2015-06-24 TICK WIKI/AAPL open: 127.21 close: 128.11\n",
      "2015-06-24 POSITION value:-126.560 upnl:1.550 rpnl:3.400\n",
      "2015-06-25 TICK WIKI/AAPL open: 128.86 close: 127.5\n",
      "2015-06-25 POSITION value:-126.560 upnl:0.940 rpnl:3.400\n",
      "2015-06-26 TICK WIKI/AAPL open: 127.67 close: 126.75\n",
      "2015-06-26 POSITION value:-126.560 upnl:0.190 rpnl:3.400\n",
      "2015-06-29 TICK WIKI/AAPL open: 125.46 close: 124.53\n",
      "2015-06-29 POSITION value:-126.560 upnl:-2.030 rpnl:3.400\n",
      "2015-06-30 TICK WIKI/AAPL open: 125.57 close: 125.425\n",
      "2015-06-30 POSITION value:-126.560 upnl:-1.135 rpnl:3.400\n",
      "2015-07-01 TICK WIKI/AAPL open: 126.9 close: 126.6\n",
      "2015-07-01 POSITION value:-126.560 upnl:0.040 rpnl:3.400\n",
      "2015-07-02 TICK WIKI/AAPL open: 126.43 close: 126.44\n",
      "2015-07-02 POSITION value:-126.560 upnl:-0.120 rpnl:3.400\n",
      "2015-07-06 TICK WIKI/AAPL open: 124.94 close: 126.0\n",
      "2015-07-06 POSITION value:-126.560 upnl:-0.560 rpnl:3.400\n",
      "2015-07-07 TICK WIKI/AAPL open: 125.89 close: 125.69\n",
      "2015-07-07 POSITION value:-126.560 upnl:-0.870 rpnl:3.400\n",
      "2015-07-08 TICK WIKI/AAPL open: 124.48 close: 122.57\n",
      "2015-07-08 POSITION value:-126.560 upnl:-3.990 rpnl:3.400\n",
      "2015-07-09 TICK WIKI/AAPL open: 123.85 close: 120.07\n",
      "2015-07-09 POSITION value:-126.560 upnl:-6.490 rpnl:3.400\n",
      "2015-07-10 TICK WIKI/AAPL open: 121.94 close: 123.28\n",
      "2015-07-10 SELL signal\n",
      "2015-07-10 ORDER SELL WIKI/AAPL 1\n",
      "2015-07-10 POSITION value:-126.560 upnl:-3.280 rpnl:3.400\n",
      "2015-07-13 TICK WIKI/AAPL open: 125.03 close: 125.66\n",
      "2015-07-13 FILLED SELL 1 WIKI/AAPL at 125.03\n",
      "2015-07-13 SELL signal\n",
      "2015-07-13 ORDER SELL WIKI/AAPL 1\n",
      "2015-07-13 POSITION value:0.000 upnl:0.000 rpnl:-1.530\n",
      "2015-07-14 TICK WIKI/AAPL open: 126.04 close: 125.61\n",
      "2015-07-14 FILLED SELL 1 WIKI/AAPL at 126.04\n",
      "2015-07-14 POSITION value:126.040 upnl:0.430 rpnl:-1.530\n",
      "2015-07-15 TICK WIKI/AAPL open: 125.72 close: 126.82\n",
      "2015-07-15 POSITION value:126.040 upnl:-0.780 rpnl:-1.530\n",
      "2015-07-16 TICK WIKI/AAPL open: 127.74 close: 128.51\n",
      "2015-07-16 POSITION value:126.040 upnl:-2.470 rpnl:-1.530\n",
      "2015-07-17 TICK WIKI/AAPL open: 129.08 close: 129.62\n",
      "2015-07-17 POSITION value:126.040 upnl:-3.580 rpnl:-1.530\n",
      "2015-07-20 TICK WIKI/AAPL open: 130.97 close: 132.07\n",
      "2015-07-20 POSITION value:126.040 upnl:-6.030 rpnl:-1.530\n",
      "2015-07-21 TICK WIKI/AAPL open: 132.85 close: 130.75\n",
      "2015-07-21 POSITION value:126.040 upnl:-4.710 rpnl:-1.530\n",
      "2015-07-22 TICK WIKI/AAPL open: 121.99 close: 125.22\n",
      "2015-07-22 BUY signal\n",
      "2015-07-22 ORDER BUY WIKI/AAPL 1\n",
      "2015-07-22 POSITION value:126.040 upnl:0.820 rpnl:-1.530\n",
      "2015-07-23 TICK WIKI/AAPL open: 126.2 close: 125.16\n",
      "2015-07-23 FILLED BUY 1 WIKI/AAPL at 126.2\n",
      "2015-07-23 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-07-24 TICK WIKI/AAPL open: 125.32 close: 124.5\n",
      "2015-07-24 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-07-27 TICK WIKI/AAPL open: 123.09 close: 122.77\n",
      "2015-07-27 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-07-28 TICK WIKI/AAPL open: 123.38 close: 123.38\n",
      "2015-07-28 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-07-29 TICK WIKI/AAPL open: 123.15 close: 122.99\n",
      "2015-07-29 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-07-30 TICK WIKI/AAPL open: 122.32 close: 122.37\n",
      "2015-07-30 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-07-31 TICK WIKI/AAPL open: 122.6 close: 121.3\n",
      "2015-07-31 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-08-03 TICK WIKI/AAPL open: 121.5 close: 118.44\n",
      "2015-08-03 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-08-04 TICK WIKI/AAPL open: 117.42 close: 114.64\n",
      "2015-08-04 BUY signal\n",
      "2015-08-04 ORDER BUY WIKI/AAPL 1\n",
      "2015-08-04 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-08-05 TICK WIKI/AAPL open: 112.95 close: 115.4\n",
      "2015-08-05 FILLED BUY 1 WIKI/AAPL at 112.95\n",
      "2015-08-05 POSITION value:-112.950 upnl:2.450 rpnl:-0.160\n",
      "2015-08-06 TICK WIKI/AAPL open: 115.97 close: 115.13\n",
      "2015-08-06 POSITION value:-112.950 upnl:2.180 rpnl:-0.160\n",
      "2015-08-07 TICK WIKI/AAPL open: 114.58 close: 115.52\n",
      "2015-08-07 POSITION value:-112.950 upnl:2.570 rpnl:-0.160\n",
      "2015-08-10 TICK WIKI/AAPL open: 116.53 close: 119.72\n",
      "2015-08-10 SELL signal\n",
      "2015-08-10 ORDER SELL WIKI/AAPL 1\n",
      "2015-08-10 POSITION value:-112.950 upnl:6.770 rpnl:-0.160\n",
      "2015-08-11 TICK WIKI/AAPL open: 117.81 close: 113.49\n",
      "2015-08-11 FILLED SELL 1 WIKI/AAPL at 117.81\n",
      "2015-08-11 BUY signal\n",
      "2015-08-11 ORDER BUY WIKI/AAPL 1\n",
      "2015-08-11 POSITION value:0.000 upnl:0.000 rpnl:4.860\n",
      "2015-08-12 TICK WIKI/AAPL open: 112.53 close: 115.24\n",
      "2015-08-12 FILLED BUY 1 WIKI/AAPL at 112.53\n",
      "2015-08-12 POSITION value:-112.530 upnl:2.710 rpnl:4.860\n",
      "2015-08-13 TICK WIKI/AAPL open: 116.04 close: 115.15\n",
      "2015-08-13 POSITION value:-112.530 upnl:2.620 rpnl:4.860\n",
      "2015-08-14 TICK WIKI/AAPL open: 114.32 close: 115.96\n",
      "2015-08-14 POSITION value:-112.530 upnl:3.430 rpnl:4.860\n",
      "2015-08-17 TICK WIKI/AAPL open: 116.04 close: 117.16\n",
      "2015-08-17 POSITION value:-112.530 upnl:4.630 rpnl:4.860\n",
      "2015-08-18 TICK WIKI/AAPL open: 116.43 close: 116.5\n",
      "2015-08-18 POSITION value:-112.530 upnl:3.970 rpnl:4.860\n",
      "2015-08-19 TICK WIKI/AAPL open: 116.1 close: 115.01\n",
      "2015-08-19 POSITION value:-112.530 upnl:2.480 rpnl:4.860\n",
      "2015-08-20 TICK WIKI/AAPL open: 114.08 close: 112.65\n",
      "2015-08-20 POSITION value:-112.530 upnl:0.120 rpnl:4.860\n",
      "2015-08-21 TICK WIKI/AAPL open: 110.43 close: 105.76\n",
      "2015-08-21 POSITION value:-112.530 upnl:-6.770 rpnl:4.860\n",
      "2015-08-24 TICK WIKI/AAPL open: 94.87 close: 103.12\n",
      "2015-08-24 POSITION value:-112.530 upnl:-9.410 rpnl:4.860\n",
      "2015-08-25 TICK WIKI/AAPL open: 111.11 close: 103.74\n",
      "2015-08-25 POSITION value:-112.530 upnl:-8.790 rpnl:4.860\n",
      "2015-08-26 TICK WIKI/AAPL open: 107.085 close: 109.69\n",
      "2015-08-26 SELL signal\n",
      "2015-08-26 ORDER SELL WIKI/AAPL 1\n",
      "2015-08-26 POSITION value:-112.530 upnl:-2.840 rpnl:4.860\n",
      "2015-08-27 TICK WIKI/AAPL open: 112.25 close: 112.92\n",
      "2015-08-27 FILLED SELL 1 WIKI/AAPL at 112.25\n",
      "2015-08-27 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-08-28 TICK WIKI/AAPL open: 112.17 close: 113.29\n",
      "2015-08-28 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-08-31 TICK WIKI/AAPL open: 112.13 close: 112.76\n",
      "2015-08-31 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-01 TICK WIKI/AAPL open: 110.18 close: 107.72\n",
      "2015-09-01 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-02 TICK WIKI/AAPL open: 110.0 close: 112.34\n",
      "2015-09-02 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-03 TICK WIKI/AAPL open: 112.49 close: 110.37\n",
      "2015-09-03 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-04 TICK WIKI/AAPL open: 108.97 close: 109.27\n",
      "2015-09-04 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-08 TICK WIKI/AAPL open: 111.65 close: 112.31\n",
      "2015-09-08 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-09 TICK WIKI/AAPL open: 113.76 close: 110.15\n",
      "2015-09-09 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-10 TICK WIKI/AAPL open: 110.27 close: 112.57\n",
      "2015-09-10 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-11 TICK WIKI/AAPL open: 111.79 close: 114.21\n",
      "2015-09-11 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-14 TICK WIKI/AAPL open: 116.58 close: 115.31\n",
      "2015-09-14 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-15 TICK WIKI/AAPL open: 115.93 close: 116.28\n",
      "2015-09-15 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-16 TICK WIKI/AAPL open: 116.25 close: 116.41\n",
      "2015-09-16 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-17 TICK WIKI/AAPL open: 115.66 close: 113.92\n",
      "2015-09-17 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-18 TICK WIKI/AAPL open: 112.21 close: 113.45\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2015-09-18 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-21 TICK WIKI/AAPL open: 113.67 close: 115.21\n",
      "2015-09-21 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-22 TICK WIKI/AAPL open: 113.38 close: 113.4\n",
      "2015-09-22 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-23 TICK WIKI/AAPL open: 113.63 close: 114.32\n",
      "2015-09-23 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-24 TICK WIKI/AAPL open: 113.25 close: 115.0\n",
      "2015-09-24 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-25 TICK WIKI/AAPL open: 116.44 close: 114.71\n",
      "2015-09-25 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-28 TICK WIKI/AAPL open: 113.85 close: 112.44\n",
      "2015-09-28 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-29 TICK WIKI/AAPL open: 112.83 close: 109.06\n",
      "2015-09-29 BUY signal\n",
      "2015-09-29 ORDER BUY WIKI/AAPL 1\n",
      "2015-09-29 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-30 TICK WIKI/AAPL open: 110.17 close: 109.95\n",
      "2015-09-30 FILLED BUY 1 WIKI/AAPL at 110.17\n",
      "2015-09-30 POSITION value:-110.170 upnl:-0.220 rpnl:-0.280\n",
      "2015-10-01 TICK WIKI/AAPL open: 109.07 close: 109.58\n",
      "2015-10-01 POSITION value:-110.170 upnl:-0.590 rpnl:-0.280\n",
      "2015-10-02 TICK WIKI/AAPL open: 108.01 close: 110.38\n",
      "2015-10-02 POSITION value:-110.170 upnl:0.210 rpnl:-0.280\n",
      "2015-10-05 TICK WIKI/AAPL open: 109.88 close: 110.78\n",
      "2015-10-05 POSITION value:-110.170 upnl:0.610 rpnl:-0.280\n",
      "2015-10-06 TICK WIKI/AAPL open: 110.63 close: 111.31\n",
      "2015-10-06 POSITION value:-110.170 upnl:1.140 rpnl:-0.280\n",
      "2015-10-07 TICK WIKI/AAPL open: 111.74 close: 110.78\n",
      "2015-10-07 POSITION value:-110.170 upnl:0.610 rpnl:-0.280\n",
      "2015-10-08 TICK WIKI/AAPL open: 110.19 close: 109.5\n",
      "2015-10-08 POSITION value:-110.170 upnl:-0.670 rpnl:-0.280\n",
      "2015-10-09 TICK WIKI/AAPL open: 110.0 close: 112.12\n",
      "2015-10-09 SELL signal\n",
      "2015-10-09 ORDER SELL WIKI/AAPL 1\n",
      "2015-10-09 POSITION value:-110.170 upnl:1.950 rpnl:-0.280\n",
      "2015-10-12 TICK WIKI/AAPL open: 112.73 close: 111.6\n",
      "2015-10-12 FILLED SELL 1 WIKI/AAPL at 112.73\n",
      "2015-10-12 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-13 TICK WIKI/AAPL open: 110.82 close: 111.79\n",
      "2015-10-13 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-14 TICK WIKI/AAPL open: 111.29 close: 110.21\n",
      "2015-10-14 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-15 TICK WIKI/AAPL open: 110.93 close: 111.86\n",
      "2015-10-15 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-16 TICK WIKI/AAPL open: 111.78 close: 111.04\n",
      "2015-10-16 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-19 TICK WIKI/AAPL open: 110.8 close: 111.73\n",
      "2015-10-19 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-20 TICK WIKI/AAPL open: 111.34 close: 113.77\n",
      "2015-10-20 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-21 TICK WIKI/AAPL open: 114.0 close: 113.76\n",
      "2015-10-21 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-22 TICK WIKI/AAPL open: 114.33 close: 115.5\n",
      "2015-10-22 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-23 TICK WIKI/AAPL open: 116.7 close: 119.08\n",
      "2015-10-23 SELL signal\n",
      "2015-10-23 ORDER SELL WIKI/AAPL 1\n",
      "2015-10-23 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-26 TICK WIKI/AAPL open: 118.08 close: 115.28\n",
      "2015-10-26 FILLED SELL 1 WIKI/AAPL at 118.08\n",
      "2015-10-26 BUY signal\n",
      "2015-10-26 ORDER BUY WIKI/AAPL 1\n",
      "2015-10-26 POSITION value:118.080 upnl:2.800 rpnl:2.560\n",
      "2015-10-27 TICK WIKI/AAPL open: 115.4 close: 114.55\n",
      "2015-10-27 FILLED BUY 1 WIKI/AAPL at 115.4\n",
      "2015-10-27 POSITION value:0.000 upnl:0.000 rpnl:2.680\n",
      "2015-10-28 TICK WIKI/AAPL open: 116.93 close: 119.27\n",
      "2015-10-28 SELL signal\n",
      "2015-10-28 ORDER SELL WIKI/AAPL 1\n",
      "2015-10-28 POSITION value:0.000 upnl:0.000 rpnl:2.680\n",
      "2015-10-29 TICK WIKI/AAPL open: 118.7 close: 120.53\n",
      "2015-10-29 FILLED SELL 1 WIKI/AAPL at 118.7\n",
      "2015-10-29 POSITION value:118.700 upnl:-1.830 rpnl:2.680\n",
      "2015-10-30 TICK WIKI/AAPL open: 120.99 close: 119.5\n",
      "2015-10-30 POSITION value:118.700 upnl:-0.800 rpnl:2.680\n",
      "2015-11-02 TICK WIKI/AAPL open: 119.87 close: 121.18\n",
      "2015-11-02 POSITION value:118.700 upnl:-2.480 rpnl:2.680\n",
      "2015-11-03 TICK WIKI/AAPL open: 120.79 close: 122.57\n",
      "2015-11-03 POSITION value:118.700 upnl:-3.870 rpnl:2.680\n",
      "2015-11-04 TICK WIKI/AAPL open: 123.13 close: 122.0\n",
      "2015-11-04 POSITION value:118.700 upnl:-3.300 rpnl:2.680\n",
      "2015-11-05 TICK WIKI/AAPL open: 121.85 close: 120.92\n",
      "2015-11-05 POSITION value:118.700 upnl:-2.220 rpnl:2.680\n",
      "2015-11-06 TICK WIKI/AAPL open: 121.11 close: 121.06\n",
      "2015-11-06 POSITION value:118.700 upnl:-2.360 rpnl:2.680\n",
      "2015-11-09 TICK WIKI/AAPL open: 120.96 close: 120.57\n",
      "2015-11-09 POSITION value:118.700 upnl:-1.870 rpnl:2.680\n",
      "2015-11-10 TICK WIKI/AAPL open: 116.9 close: 116.77\n",
      "2015-11-10 BUY signal\n",
      "2015-11-10 ORDER BUY WIKI/AAPL 1\n",
      "2015-11-10 POSITION value:118.700 upnl:1.930 rpnl:2.680\n",
      "2015-11-11 TICK WIKI/AAPL open: 116.37 close: 116.11\n",
      "2015-11-11 FILLED BUY 1 WIKI/AAPL at 116.37\n",
      "2015-11-11 POSITION value:0.000 upnl:0.000 rpnl:2.330\n",
      "2015-11-12 TICK WIKI/AAPL open: 116.26 close: 115.72\n",
      "2015-11-12 POSITION value:0.000 upnl:0.000 rpnl:2.330\n",
      "2015-11-13 TICK WIKI/AAPL open: 115.2 close: 112.34\n",
      "2015-11-13 BUY signal\n",
      "2015-11-13 ORDER BUY WIKI/AAPL 1\n",
      "2015-11-13 POSITION value:0.000 upnl:0.000 rpnl:2.330\n",
      "2015-11-16 TICK WIKI/AAPL open: 111.38 close: 114.175\n",
      "2015-11-16 FILLED BUY 1 WIKI/AAPL at 111.38\n",
      "2015-11-16 POSITION value:-111.380 upnl:2.795 rpnl:2.330\n",
      "2015-11-17 TICK WIKI/AAPL open: 114.92 close: 113.69\n",
      "2015-11-17 POSITION value:-111.380 upnl:2.310 rpnl:2.330\n",
      "2015-11-18 TICK WIKI/AAPL open: 115.76 close: 117.29\n",
      "2015-11-18 SELL signal\n",
      "2015-11-18 ORDER SELL WIKI/AAPL 1\n",
      "2015-11-18 POSITION value:-111.380 upnl:5.910 rpnl:2.330\n",
      "2015-11-19 TICK WIKI/AAPL open: 117.64 close: 118.78\n",
      "2015-11-19 FILLED SELL 1 WIKI/AAPL at 117.64\n",
      "2015-11-19 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-11-20 TICK WIKI/AAPL open: 119.2 close: 119.3\n",
      "2015-11-20 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-11-23 TICK WIKI/AAPL open: 119.27 close: 117.75\n",
      "2015-11-23 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-11-24 TICK WIKI/AAPL open: 117.33 close: 118.88\n",
      "2015-11-24 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-11-25 TICK WIKI/AAPL open: 119.21 close: 118.03\n",
      "2015-11-25 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-11-27 TICK WIKI/AAPL open: 118.29 close: 117.81\n",
      "2015-11-27 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-11-30 TICK WIKI/AAPL open: 117.99 close: 118.3\n",
      "2015-11-30 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-12-01 TICK WIKI/AAPL open: 118.75 close: 117.34\n",
      "2015-12-01 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-12-02 TICK WIKI/AAPL open: 117.05 close: 116.28\n",
      "2015-12-02 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-12-03 TICK WIKI/AAPL open: 116.55 close: 115.2\n",
      "2015-12-03 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-12-04 TICK WIKI/AAPL open: 115.29 close: 119.03\n",
      "2015-12-04 SELL signal\n",
      "2015-12-04 ORDER SELL WIKI/AAPL 1\n",
      "2015-12-04 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-12-07 TICK WIKI/AAPL open: 118.98 close: 118.28\n",
      "2015-12-07 FILLED SELL 1 WIKI/AAPL at 118.98\n",
      "2015-12-07 POSITION value:118.980 upnl:0.700 rpnl:6.260\n",
      "2015-12-08 TICK WIKI/AAPL open: 117.52 close: 118.23\n",
      "2015-12-08 POSITION value:118.980 upnl:0.750 rpnl:6.260\n",
      "2015-12-09 TICK WIKI/AAPL open: 117.64 close: 115.62\n",
      "2015-12-09 POSITION value:118.980 upnl:3.360 rpnl:6.260\n",
      "2015-12-10 TICK WIKI/AAPL open: 116.04 close: 116.17\n",
      "2015-12-10 POSITION value:118.980 upnl:2.810 rpnl:6.260\n",
      "2015-12-11 TICK WIKI/AAPL open: 115.19 close: 113.18\n",
      "2015-12-11 BUY signal\n",
      "2015-12-11 ORDER BUY WIKI/AAPL 1\n",
      "2015-12-11 POSITION value:118.980 upnl:5.800 rpnl:6.260\n",
      "2015-12-14 TICK WIKI/AAPL open: 112.18 close: 112.48\n",
      "2015-12-14 FILLED BUY 1 WIKI/AAPL at 112.18\n",
      "2015-12-14 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-15 TICK WIKI/AAPL open: 111.94 close: 110.49\n",
      "2015-12-15 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-16 TICK WIKI/AAPL open: 111.07 close: 111.34\n",
      "2015-12-16 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-17 TICK WIKI/AAPL open: 112.02 close: 108.98\n",
      "2015-12-17 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-18 TICK WIKI/AAPL open: 108.91 close: 106.03\n",
      "2015-12-18 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-21 TICK WIKI/AAPL open: 107.28 close: 107.33\n",
      "2015-12-21 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-22 TICK WIKI/AAPL open: 107.4 close: 107.23\n",
      "2015-12-22 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-23 TICK WIKI/AAPL open: 107.27 close: 108.61\n",
      "2015-12-23 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-24 TICK WIKI/AAPL open: 109.0 close: 108.03\n",
      "2015-12-24 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-28 TICK WIKI/AAPL open: 107.59 close: 106.82\n",
      "2015-12-28 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-29 TICK WIKI/AAPL open: 106.96 close: 108.74\n",
      "2015-12-29 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-30 TICK WIKI/AAPL open: 108.58 close: 107.32\n",
      "2015-12-30 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-31 TICK WIKI/AAPL open: 107.01 close: 105.26\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2015-12-31 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2016-01-04 TICK WIKI/AAPL open: 102.61 close: 105.35\n",
      "2016-01-04 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2016-01-05 TICK WIKI/AAPL open: 105.75 close: 102.71\n",
      "2016-01-05 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2016-01-06 TICK WIKI/AAPL open: 100.56 close: 100.7\n",
      "2016-01-06 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2016-01-07 TICK WIKI/AAPL open: 98.68 close: 96.45\n",
      "2016-01-07 BUY signal\n",
      "2016-01-07 ORDER BUY WIKI/AAPL 1\n",
      "2016-01-07 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2016-01-08 TICK WIKI/AAPL open: 98.55 close: 96.96\n",
      "2016-01-08 FILLED BUY 1 WIKI/AAPL at 98.55\n",
      "2016-01-08 POSITION value:-98.550 upnl:-1.590 rpnl:6.800\n",
      "2016-01-11 TICK WIKI/AAPL open: 98.97 close: 98.53\n",
      "2016-01-11 POSITION value:-98.550 upnl:-0.020 rpnl:6.800\n",
      "2016-01-12 TICK WIKI/AAPL open: 100.55 close: 99.96\n",
      "2016-01-12 POSITION value:-98.550 upnl:1.410 rpnl:6.800\n",
      "2016-01-13 TICK WIKI/AAPL open: 100.32 close: 97.39\n",
      "2016-01-13 POSITION value:-98.550 upnl:-1.160 rpnl:6.800\n",
      "2016-01-14 TICK WIKI/AAPL open: 97.96 close: 99.52\n",
      "2016-01-14 POSITION value:-98.550 upnl:0.970 rpnl:6.800\n",
      "2016-01-15 TICK WIKI/AAPL open: 96.2 close: 97.13\n",
      "2016-01-15 POSITION value:-98.550 upnl:-1.420 rpnl:6.800\n",
      "2016-01-19 TICK WIKI/AAPL open: 98.41 close: 96.66\n",
      "2016-01-19 POSITION value:-98.550 upnl:-1.890 rpnl:6.800\n",
      "2016-01-20 TICK WIKI/AAPL open: 95.1 close: 96.79\n",
      "2016-01-20 POSITION value:-98.550 upnl:-1.760 rpnl:6.800\n",
      "2016-01-21 TICK WIKI/AAPL open: 97.06 close: 96.3\n",
      "2016-01-21 POSITION value:-98.550 upnl:-2.250 rpnl:6.800\n",
      "2016-01-22 TICK WIKI/AAPL open: 98.63 close: 101.42\n",
      "2016-01-22 SELL signal\n",
      "2016-01-22 ORDER SELL WIKI/AAPL 1\n",
      "2016-01-22 POSITION value:-98.550 upnl:2.870 rpnl:6.800\n",
      "2016-01-25 TICK WIKI/AAPL open: 101.52 close: 99.44\n",
      "2016-01-25 FILLED SELL 1 WIKI/AAPL at 101.52\n",
      "2016-01-25 POSITION value:0.000 upnl:0.000 rpnl:2.970\n",
      "2016-01-26 TICK WIKI/AAPL open: 99.93 close: 99.99\n",
      "2016-01-26 POSITION value:0.000 upnl:0.000 rpnl:2.970\n",
      "2016-01-27 TICK WIKI/AAPL open: 96.04 close: 93.42\n",
      "2016-01-27 BUY signal\n",
      "2016-01-27 ORDER BUY WIKI/AAPL 1\n",
      "2016-01-27 POSITION value:0.000 upnl:0.000 rpnl:2.970\n",
      "2016-01-28 TICK WIKI/AAPL open: 93.79 close: 94.09\n",
      "2016-01-28 FILLED BUY 1 WIKI/AAPL at 93.79\n",
      "2016-01-28 POSITION value:-93.790 upnl:0.300 rpnl:2.970\n",
      "2016-01-29 TICK WIKI/AAPL open: 94.79 close: 97.34\n",
      "2016-01-29 POSITION value:-93.790 upnl:3.550 rpnl:2.970\n",
      "2016-02-01 TICK WIKI/AAPL open: 96.47 close: 96.43\n",
      "2016-02-01 POSITION value:-93.790 upnl:2.640 rpnl:2.970\n",
      "2016-02-02 TICK WIKI/AAPL open: 95.42 close: 94.48\n",
      "2016-02-02 POSITION value:-93.790 upnl:0.690 rpnl:2.970\n",
      "2016-02-03 TICK WIKI/AAPL open: 95.0 close: 96.35\n",
      "2016-02-03 POSITION value:-93.790 upnl:2.560 rpnl:2.970\n",
      "2016-02-04 TICK WIKI/AAPL open: 95.86 close: 96.6\n",
      "2016-02-04 POSITION value:-93.790 upnl:2.810 rpnl:2.970\n",
      "2016-02-05 TICK WIKI/AAPL open: 96.52 close: 94.02\n",
      "2016-02-05 POSITION value:-93.790 upnl:0.230 rpnl:2.970\n",
      "2016-02-08 TICK WIKI/AAPL open: 93.13 close: 95.01\n",
      "2016-02-08 POSITION value:-93.790 upnl:1.220 rpnl:2.970\n",
      "2016-02-09 TICK WIKI/AAPL open: 94.29 close: 94.99\n",
      "2016-02-09 POSITION value:-93.790 upnl:1.200 rpnl:2.970\n",
      "2016-02-10 TICK WIKI/AAPL open: 95.92 close: 94.27\n",
      "2016-02-10 POSITION value:-93.790 upnl:0.480 rpnl:2.970\n",
      "2016-02-11 TICK WIKI/AAPL open: 93.79 close: 93.7\n",
      "2016-02-11 POSITION value:-93.790 upnl:-0.090 rpnl:2.970\n",
      "2016-02-12 TICK WIKI/AAPL open: 94.19 close: 93.99\n",
      "2016-02-12 POSITION value:-93.790 upnl:0.200 rpnl:2.970\n",
      "2016-02-16 TICK WIKI/AAPL open: 95.02 close: 96.64\n",
      "2016-02-16 POSITION value:-93.790 upnl:2.850 rpnl:2.970\n",
      "2016-02-17 TICK WIKI/AAPL open: 96.67 close: 98.12\n",
      "2016-02-17 POSITION value:-93.790 upnl:4.330 rpnl:2.970\n",
      "2016-02-18 TICK WIKI/AAPL open: 98.84 close: 96.26\n",
      "2016-02-18 POSITION value:-93.790 upnl:2.470 rpnl:2.970\n",
      "2016-02-19 TICK WIKI/AAPL open: 96.0 close: 96.04\n",
      "2016-02-19 POSITION value:-93.790 upnl:2.250 rpnl:2.970\n",
      "2016-02-22 TICK WIKI/AAPL open: 96.31 close: 96.88\n",
      "2016-02-22 POSITION value:-93.790 upnl:3.090 rpnl:2.970\n",
      "2016-02-23 TICK WIKI/AAPL open: 96.4 close: 94.69\n",
      "2016-02-23 POSITION value:-93.790 upnl:0.900 rpnl:2.970\n",
      "2016-02-24 TICK WIKI/AAPL open: 93.98 close: 96.1\n",
      "2016-02-24 POSITION value:-93.790 upnl:2.310 rpnl:2.970\n",
      "2016-02-25 TICK WIKI/AAPL open: 96.05 close: 96.76\n",
      "2016-02-25 POSITION value:-93.790 upnl:2.970 rpnl:2.970\n",
      "2016-02-26 TICK WIKI/AAPL open: 97.2 close: 96.91\n",
      "2016-02-26 POSITION value:-93.790 upnl:3.120 rpnl:2.970\n",
      "2016-02-29 TICK WIKI/AAPL open: 96.86 close: 96.69\n",
      "2016-02-29 POSITION value:-93.790 upnl:2.900 rpnl:2.970\n",
      "2016-03-01 TICK WIKI/AAPL open: 97.65 close: 100.53\n",
      "2016-03-01 SELL signal\n",
      "2016-03-01 ORDER SELL WIKI/AAPL 1\n",
      "2016-03-01 POSITION value:-93.790 upnl:6.740 rpnl:2.970\n",
      "2016-03-02 TICK WIKI/AAPL open: 100.51 close: 100.75\n",
      "2016-03-02 FILLED SELL 1 WIKI/AAPL at 100.51\n",
      "2016-03-02 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-03 TICK WIKI/AAPL open: 100.58 close: 101.5\n",
      "2016-03-03 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-04 TICK WIKI/AAPL open: 102.37 close: 103.01\n",
      "2016-03-04 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-07 TICK WIKI/AAPL open: 102.39 close: 101.87\n",
      "2016-03-07 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-08 TICK WIKI/AAPL open: 100.78 close: 101.03\n",
      "2016-03-08 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-09 TICK WIKI/AAPL open: 101.31 close: 101.12\n",
      "2016-03-09 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-10 TICK WIKI/AAPL open: 101.41 close: 101.17\n",
      "2016-03-10 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-11 TICK WIKI/AAPL open: 102.24 close: 102.26\n",
      "2016-03-11 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-14 TICK WIKI/AAPL open: 101.91 close: 102.52\n",
      "2016-03-14 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-15 TICK WIKI/AAPL open: 103.96 close: 104.58\n",
      "2016-03-15 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-16 TICK WIKI/AAPL open: 104.61 close: 105.97\n",
      "2016-03-16 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-17 TICK WIKI/AAPL open: 105.52 close: 105.8\n",
      "2016-03-17 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-18 TICK WIKI/AAPL open: 106.34 close: 105.92\n",
      "2016-03-18 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-21 TICK WIKI/AAPL open: 105.93 close: 105.91\n",
      "2016-03-21 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-22 TICK WIKI/AAPL open: 105.25 close: 106.72\n",
      "2016-03-22 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-23 TICK WIKI/AAPL open: 106.48 close: 106.13\n",
      "2016-03-23 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-24 TICK WIKI/AAPL open: 105.47 close: 105.67\n",
      "2016-03-24 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-28 TICK WIKI/AAPL open: 106.0 close: 105.19\n",
      "2016-03-28 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-29 TICK WIKI/AAPL open: 104.89 close: 107.68\n",
      "2016-03-29 SELL signal\n",
      "2016-03-29 ORDER SELL WIKI/AAPL 1\n",
      "2016-03-29 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-30 TICK WIKI/AAPL open: 108.65 close: 109.56\n",
      "2016-03-30 FILLED SELL 1 WIKI/AAPL at 108.65\n",
      "2016-03-30 POSITION value:108.650 upnl:-0.910 rpnl:6.720\n",
      "2016-03-31 TICK WIKI/AAPL open: 109.72 close: 108.99\n",
      "2016-03-31 POSITION value:108.650 upnl:-0.340 rpnl:6.720\n",
      "2016-04-01 TICK WIKI/AAPL open: 108.78 close: 109.99\n",
      "2016-04-01 POSITION value:108.650 upnl:-1.340 rpnl:6.720\n",
      "2016-04-04 TICK WIKI/AAPL open: 110.42 close: 111.12\n",
      "2016-04-04 POSITION value:108.650 upnl:-2.470 rpnl:6.720\n",
      "2016-04-05 TICK WIKI/AAPL open: 109.51 close: 109.81\n",
      "2016-04-05 BUY signal\n",
      "2016-04-05 ORDER BUY WIKI/AAPL 1\n",
      "2016-04-05 POSITION value:108.650 upnl:-1.160 rpnl:6.720\n",
      "2016-04-06 TICK WIKI/AAPL open: 110.23 close: 110.96\n",
      "2016-04-06 FILLED BUY 1 WIKI/AAPL at 110.23\n",
      "2016-04-06 POSITION value:0.000 upnl:0.000 rpnl:-1.580\n",
      "2016-04-07 TICK WIKI/AAPL open: 109.95 close: 108.54\n",
      "2016-04-07 BUY signal\n",
      "2016-04-07 ORDER BUY WIKI/AAPL 1\n",
      "2016-04-07 POSITION value:0.000 upnl:0.000 rpnl:-1.580\n",
      "2016-04-08 TICK WIKI/AAPL open: 108.91 close: 108.66\n",
      "2016-04-08 FILLED BUY 1 WIKI/AAPL at 108.91\n",
      "2016-04-08 POSITION value:-108.910 upnl:-0.250 rpnl:-1.580\n",
      "2016-04-11 TICK WIKI/AAPL open: 108.97 close: 109.02\n",
      "2016-04-11 POSITION value:-108.910 upnl:0.110 rpnl:-1.580\n",
      "2016-04-12 TICK WIKI/AAPL open: 109.34 close: 110.44\n",
      "2016-04-12 POSITION value:-108.910 upnl:1.530 rpnl:-1.580\n",
      "2016-04-13 TICK WIKI/AAPL open: 110.8 close: 112.04\n",
      "2016-04-13 POSITION value:-108.910 upnl:3.130 rpnl:-1.580\n",
      "2016-04-14 TICK WIKI/AAPL open: 111.62 close: 112.1\n",
      "2016-04-14 POSITION value:-108.910 upnl:3.190 rpnl:-1.580\n",
      "2016-04-15 TICK WIKI/AAPL open: 112.11 close: 109.85\n",
      "2016-04-15 POSITION value:-108.910 upnl:0.940 rpnl:-1.580\n",
      "2016-04-18 TICK WIKI/AAPL open: 108.89 close: 107.48\n",
      "2016-04-18 POSITION value:-108.910 upnl:-1.430 rpnl:-1.580\n",
      "2016-04-19 TICK WIKI/AAPL open: 107.88 close: 106.91\n",
      "2016-04-19 POSITION value:-108.910 upnl:-2.000 rpnl:-1.580\n",
      "2016-04-20 TICK WIKI/AAPL open: 106.64 close: 107.13\n",
      "2016-04-20 POSITION value:-108.910 upnl:-1.780 rpnl:-1.580\n",
      "2016-04-21 TICK WIKI/AAPL open: 106.93 close: 105.97\n",
      "2016-04-21 POSITION value:-108.910 upnl:-2.940 rpnl:-1.580\n",
      "2016-04-22 TICK WIKI/AAPL open: 105.01 close: 105.68\n",
      "2016-04-22 POSITION value:-108.910 upnl:-3.230 rpnl:-1.580\n",
      "2016-04-25 TICK WIKI/AAPL open: 105.0 close: 105.08\n",
      "2016-04-25 POSITION value:-108.910 upnl:-3.830 rpnl:-1.580\n",
      "2016-04-26 TICK WIKI/AAPL open: 103.91 close: 104.35\n",
      "2016-04-26 POSITION value:-108.910 upnl:-4.560 rpnl:-1.580\n",
      "2016-04-27 TICK WIKI/AAPL open: 96.0 close: 97.82\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2016-04-27 POSITION value:-108.910 upnl:-11.090 rpnl:-1.580\n",
      "2016-04-28 TICK WIKI/AAPL open: 97.61 close: 94.83\n",
      "2016-04-28 POSITION value:-108.910 upnl:-14.080 rpnl:-1.580\n",
      "2016-04-29 TICK WIKI/AAPL open: 93.99 close: 93.74\n",
      "2016-04-29 POSITION value:-108.910 upnl:-15.170 rpnl:-1.580\n",
      "2016-05-02 TICK WIKI/AAPL open: 93.965 close: 93.64\n",
      "2016-05-02 POSITION value:-108.910 upnl:-15.270 rpnl:-1.580\n",
      "2016-05-03 TICK WIKI/AAPL open: 94.2 close: 95.18\n",
      "2016-05-03 POSITION value:-108.910 upnl:-13.730 rpnl:-1.580\n",
      "2016-05-04 TICK WIKI/AAPL open: 95.2 close: 94.19\n",
      "2016-05-04 POSITION value:-108.910 upnl:-14.720 rpnl:-1.580\n",
      "2016-05-05 TICK WIKI/AAPL open: 94.0 close: 93.24\n",
      "2016-05-05 POSITION value:-108.910 upnl:-15.670 rpnl:-1.580\n",
      "2016-05-06 TICK WIKI/AAPL open: 93.37 close: 92.72\n",
      "2016-05-06 POSITION value:-108.910 upnl:-16.190 rpnl:-1.580\n",
      "2016-05-09 TICK WIKI/AAPL open: 93.0 close: 92.79\n",
      "2016-05-09 POSITION value:-108.910 upnl:-16.120 rpnl:-1.580\n",
      "2016-05-10 TICK WIKI/AAPL open: 93.33 close: 93.42\n",
      "2016-05-10 POSITION value:-108.910 upnl:-15.490 rpnl:-1.580\n",
      "2016-05-11 TICK WIKI/AAPL open: 93.48 close: 92.51\n",
      "2016-05-11 POSITION value:-108.910 upnl:-16.400 rpnl:-1.580\n",
      "2016-05-12 TICK WIKI/AAPL open: 92.72 close: 90.34\n",
      "2016-05-12 POSITION value:-108.910 upnl:-18.570 rpnl:-1.580\n",
      "2016-05-13 TICK WIKI/AAPL open: 90.0 close: 90.52\n",
      "2016-05-13 POSITION value:-108.910 upnl:-18.390 rpnl:-1.580\n",
      "2016-05-16 TICK WIKI/AAPL open: 92.39 close: 93.88\n",
      "2016-05-16 SELL signal\n",
      "2016-05-16 ORDER SELL WIKI/AAPL 1\n",
      "2016-05-16 POSITION value:-108.910 upnl:-15.030 rpnl:-1.580\n",
      "2016-05-17 TICK WIKI/AAPL open: 94.55 close: 93.49\n",
      "2016-05-17 FILLED SELL 1 WIKI/AAPL at 94.55\n",
      "2016-05-17 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-18 TICK WIKI/AAPL open: 94.16 close: 94.56\n",
      "2016-05-18 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-19 TICK WIKI/AAPL open: 94.64 close: 94.2\n",
      "2016-05-19 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-20 TICK WIKI/AAPL open: 94.64 close: 95.22\n",
      "2016-05-20 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-23 TICK WIKI/AAPL open: 95.87 close: 96.43\n",
      "2016-05-23 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-24 TICK WIKI/AAPL open: 97.22 close: 97.9\n",
      "2016-05-24 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-25 TICK WIKI/AAPL open: 98.67 close: 99.62\n",
      "2016-05-25 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-26 TICK WIKI/AAPL open: 99.68 close: 100.41\n",
      "2016-05-26 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-27 TICK WIKI/AAPL open: 99.44 close: 100.35\n",
      "2016-05-27 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-31 TICK WIKI/AAPL open: 99.6 close: 99.86\n",
      "2016-05-31 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-01 TICK WIKI/AAPL open: 99.02 close: 98.46\n",
      "2016-06-01 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-02 TICK WIKI/AAPL open: 97.6 close: 97.72\n",
      "2016-06-02 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-03 TICK WIKI/AAPL open: 97.79 close: 97.92\n",
      "2016-06-03 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-06 TICK WIKI/AAPL open: 97.99 close: 98.63\n",
      "2016-06-06 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-07 TICK WIKI/AAPL open: 99.25 close: 99.03\n",
      "2016-06-07 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-08 TICK WIKI/AAPL open: 99.02 close: 98.94\n",
      "2016-06-08 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-09 TICK WIKI/AAPL open: 98.5 close: 99.65\n",
      "2016-06-09 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-10 TICK WIKI/AAPL open: 98.53 close: 98.83\n",
      "2016-06-10 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-13 TICK WIKI/AAPL open: 98.69 close: 97.34\n",
      "2016-06-13 BUY signal\n",
      "2016-06-13 ORDER BUY WIKI/AAPL 1\n",
      "2016-06-13 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-14 TICK WIKI/AAPL open: 97.32 close: 97.46\n",
      "2016-06-14 FILLED BUY 1 WIKI/AAPL at 97.32\n",
      "2016-06-14 POSITION value:-97.320 upnl:0.140 rpnl:-14.360\n",
      "2016-06-15 TICK WIKI/AAPL open: 97.82 close: 97.14\n",
      "2016-06-15 POSITION value:-97.320 upnl:-0.180 rpnl:-14.360\n",
      "2016-06-16 TICK WIKI/AAPL open: 96.45 close: 97.55\n",
      "2016-06-16 POSITION value:-97.320 upnl:0.230 rpnl:-14.360\n",
      "2016-06-17 TICK WIKI/AAPL open: 96.62 close: 95.33\n",
      "2016-06-17 POSITION value:-97.320 upnl:-1.990 rpnl:-14.360\n",
      "2016-06-20 TICK WIKI/AAPL open: 96.0 close: 95.1\n",
      "2016-06-20 POSITION value:-97.320 upnl:-2.220 rpnl:-14.360\n",
      "2016-06-21 TICK WIKI/AAPL open: 94.94 close: 95.91\n",
      "2016-06-21 POSITION value:-97.320 upnl:-1.410 rpnl:-14.360\n",
      "2016-06-22 TICK WIKI/AAPL open: 96.25 close: 95.55\n",
      "2016-06-22 POSITION value:-97.320 upnl:-1.770 rpnl:-14.360\n",
      "2016-06-23 TICK WIKI/AAPL open: 95.94 close: 96.1\n",
      "2016-06-23 POSITION value:-97.320 upnl:-1.220 rpnl:-14.360\n",
      "2016-06-24 TICK WIKI/AAPL open: 92.91 close: 93.4\n",
      "2016-06-24 POSITION value:-97.320 upnl:-3.920 rpnl:-14.360\n",
      "2016-06-27 TICK WIKI/AAPL open: 93.0 close: 92.04\n",
      "2016-06-27 POSITION value:-97.320 upnl:-5.280 rpnl:-14.360\n",
      "2016-06-28 TICK WIKI/AAPL open: 92.9 close: 93.59\n",
      "2016-06-28 SELL signal\n",
      "2016-06-28 ORDER SELL WIKI/AAPL 1\n",
      "2016-06-28 POSITION value:-97.320 upnl:-3.730 rpnl:-14.360\n",
      "2016-06-29 TICK WIKI/AAPL open: 93.97 close: 94.4\n",
      "2016-06-29 FILLED SELL 1 WIKI/AAPL at 93.97\n",
      "2016-06-29 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-06-30 TICK WIKI/AAPL open: 94.44 close: 95.6\n",
      "2016-06-30 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-01 TICK WIKI/AAPL open: 95.49 close: 95.89\n",
      "2016-07-01 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-05 TICK WIKI/AAPL open: 95.39 close: 94.99\n",
      "2016-07-05 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-06 TICK WIKI/AAPL open: 94.6 close: 95.53\n",
      "2016-07-06 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-07 TICK WIKI/AAPL open: 95.7 close: 95.94\n",
      "2016-07-07 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-08 TICK WIKI/AAPL open: 96.49 close: 96.68\n",
      "2016-07-08 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-11 TICK WIKI/AAPL open: 96.75 close: 96.98\n",
      "2016-07-11 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-12 TICK WIKI/AAPL open: 97.17 close: 97.42\n",
      "2016-07-12 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-13 TICK WIKI/AAPL open: 97.41 close: 96.87\n",
      "2016-07-13 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-14 TICK WIKI/AAPL open: 97.39 close: 98.79\n",
      "2016-07-14 SELL signal\n",
      "2016-07-14 ORDER SELL WIKI/AAPL 1\n",
      "2016-07-14 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-15 TICK WIKI/AAPL open: 98.92 close: 98.78\n",
      "2016-07-15 FILLED SELL 1 WIKI/AAPL at 98.92\n",
      "2016-07-15 POSITION value:98.920 upnl:0.140 rpnl:-3.350\n",
      "2016-07-18 TICK WIKI/AAPL open: 98.7 close: 99.83\n",
      "2016-07-18 POSITION value:98.920 upnl:-0.910 rpnl:-3.350\n",
      "2016-07-19 TICK WIKI/AAPL open: 99.56 close: 99.87\n",
      "2016-07-19 POSITION value:98.920 upnl:-0.950 rpnl:-3.350\n",
      "2016-07-20 TICK WIKI/AAPL open: 100.0 close: 99.96\n",
      "2016-07-20 POSITION value:98.920 upnl:-1.040 rpnl:-3.350\n",
      "2016-07-21 TICK WIKI/AAPL open: 99.83 close: 99.43\n",
      "2016-07-21 POSITION value:98.920 upnl:-0.510 rpnl:-3.350\n",
      "2016-07-22 TICK WIKI/AAPL open: 99.26 close: 98.66\n",
      "2016-07-22 POSITION value:98.920 upnl:0.260 rpnl:-3.350\n",
      "2016-07-25 TICK WIKI/AAPL open: 98.25 close: 97.34\n",
      "2016-07-25 BUY signal\n",
      "2016-07-25 ORDER BUY WIKI/AAPL 1\n",
      "2016-07-25 POSITION value:98.920 upnl:1.580 rpnl:-3.350\n",
      "2016-07-26 TICK WIKI/AAPL open: 96.82 close: 96.67\n",
      "2016-07-26 FILLED BUY 1 WIKI/AAPL at 96.82\n",
      "2016-07-26 POSITION value:0.000 upnl:0.000 rpnl:2.100\n",
      "2016-07-27 TICK WIKI/AAPL open: 104.265 close: 102.95\n",
      "2016-07-27 SELL signal\n",
      "2016-07-27 ORDER SELL WIKI/AAPL 1\n",
      "2016-07-27 POSITION value:0.000 upnl:0.000 rpnl:2.100\n",
      "2016-07-28 TICK WIKI/AAPL open: 102.83 close: 104.34\n",
      "2016-07-28 FILLED SELL 1 WIKI/AAPL at 102.83\n",
      "2016-07-28 POSITION value:102.830 upnl:-1.510 rpnl:2.100\n",
      "2016-07-29 TICK WIKI/AAPL open: 104.19 close: 104.21\n",
      "2016-07-29 POSITION value:102.830 upnl:-1.380 rpnl:2.100\n",
      "2016-08-01 TICK WIKI/AAPL open: 104.41 close: 106.05\n",
      "2016-08-01 POSITION value:102.830 upnl:-3.220 rpnl:2.100\n",
      "2016-08-02 TICK WIKI/AAPL open: 106.05 close: 104.48\n",
      "2016-08-02 POSITION value:102.830 upnl:-1.650 rpnl:2.100\n",
      "2016-08-03 TICK WIKI/AAPL open: 104.81 close: 105.79\n",
      "2016-08-03 POSITION value:102.830 upnl:-2.960 rpnl:2.100\n",
      "2016-08-04 TICK WIKI/AAPL open: 105.58 close: 105.87\n",
      "2016-08-04 POSITION value:102.830 upnl:-3.040 rpnl:2.100\n",
      "2016-08-05 TICK WIKI/AAPL open: 106.27 close: 107.48\n",
      "2016-08-05 POSITION value:102.830 upnl:-4.650 rpnl:2.100\n",
      "2016-08-08 TICK WIKI/AAPL open: 107.52 close: 108.37\n",
      "2016-08-08 POSITION value:102.830 upnl:-5.540 rpnl:2.100\n",
      "2016-08-09 TICK WIKI/AAPL open: 108.23 close: 108.81\n",
      "2016-08-09 POSITION value:102.830 upnl:-5.980 rpnl:2.100\n",
      "2016-08-10 TICK WIKI/AAPL open: 108.71 close: 108.0\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2016-08-10 POSITION value:102.830 upnl:-5.170 rpnl:2.100\n",
      "2016-08-11 TICK WIKI/AAPL open: 108.52 close: 107.93\n",
      "2016-08-11 POSITION value:102.830 upnl:-5.100 rpnl:2.100\n",
      "2016-08-12 TICK WIKI/AAPL open: 107.78 close: 108.18\n",
      "2016-08-12 POSITION value:102.830 upnl:-5.350 rpnl:2.100\n",
      "2016-08-15 TICK WIKI/AAPL open: 108.14 close: 109.48\n",
      "2016-08-15 POSITION value:102.830 upnl:-6.650 rpnl:2.100\n",
      "2016-08-16 TICK WIKI/AAPL open: 109.63 close: 109.38\n",
      "2016-08-16 POSITION value:102.830 upnl:-6.550 rpnl:2.100\n",
      "2016-08-17 TICK WIKI/AAPL open: 109.1 close: 109.22\n",
      "2016-08-17 POSITION value:102.830 upnl:-6.390 rpnl:2.100\n",
      "2016-08-18 TICK WIKI/AAPL open: 109.23 close: 109.08\n",
      "2016-08-18 POSITION value:102.830 upnl:-6.250 rpnl:2.100\n",
      "2016-08-19 TICK WIKI/AAPL open: 108.77 close: 109.36\n",
      "2016-08-19 POSITION value:102.830 upnl:-6.530 rpnl:2.100\n",
      "2016-08-22 TICK WIKI/AAPL open: 108.86 close: 108.51\n",
      "2016-08-22 POSITION value:102.830 upnl:-5.680 rpnl:2.100\n",
      "2016-08-23 TICK WIKI/AAPL open: 108.59 close: 108.85\n",
      "2016-08-23 POSITION value:102.830 upnl:-6.020 rpnl:2.100\n",
      "2016-08-24 TICK WIKI/AAPL open: 108.565 close: 108.03\n",
      "2016-08-24 POSITION value:102.830 upnl:-5.200 rpnl:2.100\n",
      "2016-08-25 TICK WIKI/AAPL open: 107.39 close: 107.57\n",
      "2016-08-25 POSITION value:102.830 upnl:-4.740 rpnl:2.100\n",
      "2016-08-26 TICK WIKI/AAPL open: 107.41 close: 106.94\n",
      "2016-08-26 POSITION value:102.830 upnl:-4.110 rpnl:2.100\n",
      "2016-08-29 TICK WIKI/AAPL open: 106.62 close: 106.82\n",
      "2016-08-29 POSITION value:102.830 upnl:-3.990 rpnl:2.100\n",
      "2016-08-30 TICK WIKI/AAPL open: 105.8 close: 106.0\n",
      "2016-08-30 POSITION value:102.830 upnl:-3.170 rpnl:2.100\n",
      "2016-08-31 TICK WIKI/AAPL open: 105.66 close: 106.1\n",
      "2016-08-31 POSITION value:102.830 upnl:-3.270 rpnl:2.100\n",
      "2016-09-01 TICK WIKI/AAPL open: 106.14 close: 106.73\n",
      "2016-09-01 POSITION value:102.830 upnl:-3.900 rpnl:2.100\n",
      "2016-09-02 TICK WIKI/AAPL open: 107.7 close: 107.73\n",
      "2016-09-02 POSITION value:102.830 upnl:-4.900 rpnl:2.100\n",
      "2016-09-06 TICK WIKI/AAPL open: 107.9 close: 107.7\n",
      "2016-09-06 POSITION value:102.830 upnl:-4.870 rpnl:2.100\n",
      "2016-09-07 TICK WIKI/AAPL open: 107.83 close: 108.36\n",
      "2016-09-07 POSITION value:102.830 upnl:-5.530 rpnl:2.100\n",
      "2016-09-08 TICK WIKI/AAPL open: 107.25 close: 105.52\n",
      "2016-09-08 BUY signal\n",
      "2016-09-08 ORDER BUY WIKI/AAPL 1\n",
      "2016-09-08 POSITION value:102.830 upnl:-2.690 rpnl:2.100\n",
      "2016-09-09 TICK WIKI/AAPL open: 104.64 close: 103.13\n",
      "2016-09-09 FILLED BUY 1 WIKI/AAPL at 104.64\n",
      "2016-09-09 BUY signal\n",
      "2016-09-09 ORDER BUY WIKI/AAPL 1\n",
      "2016-09-09 POSITION value:0.000 upnl:0.000 rpnl:-1.810\n",
      "2016-09-12 TICK WIKI/AAPL open: 102.65 close: 105.44\n",
      "2016-09-12 FILLED BUY 1 WIKI/AAPL at 102.65\n",
      "2016-09-12 SELL signal\n",
      "2016-09-12 ORDER SELL WIKI/AAPL 1\n",
      "2016-09-12 POSITION value:-102.650 upnl:2.790 rpnl:-1.810\n",
      "2016-09-13 TICK WIKI/AAPL open: 107.51 close: 107.95\n",
      "2016-09-13 FILLED SELL 1 WIKI/AAPL at 107.51\n",
      "2016-09-13 SELL signal\n",
      "2016-09-13 ORDER SELL WIKI/AAPL 1\n",
      "2016-09-13 POSITION value:0.000 upnl:0.000 rpnl:4.860\n",
      "2016-09-14 TICK WIKI/AAPL open: 108.73 close: 111.77\n",
      "2016-09-14 FILLED SELL 1 WIKI/AAPL at 108.73\n",
      "2016-09-14 POSITION value:108.730 upnl:-3.040 rpnl:4.860\n",
      "2016-09-15 TICK WIKI/AAPL open: 113.86 close: 115.57\n",
      "2016-09-15 POSITION value:108.730 upnl:-6.840 rpnl:4.860\n",
      "2016-09-16 TICK WIKI/AAPL open: 115.12 close: 114.92\n",
      "2016-09-16 POSITION value:108.730 upnl:-6.190 rpnl:4.860\n",
      "2016-09-19 TICK WIKI/AAPL open: 115.19 close: 113.58\n",
      "2016-09-19 POSITION value:108.730 upnl:-4.850 rpnl:4.860\n",
      "2016-09-20 TICK WIKI/AAPL open: 113.05 close: 113.57\n",
      "2016-09-20 POSITION value:108.730 upnl:-4.840 rpnl:4.860\n",
      "2016-09-21 TICK WIKI/AAPL open: 113.85 close: 113.55\n",
      "2016-09-21 POSITION value:108.730 upnl:-4.820 rpnl:4.860\n",
      "2016-09-22 TICK WIKI/AAPL open: 114.35 close: 114.62\n",
      "2016-09-22 POSITION value:108.730 upnl:-5.890 rpnl:4.860\n",
      "2016-09-23 TICK WIKI/AAPL open: 114.42 close: 112.71\n",
      "2016-09-23 POSITION value:108.730 upnl:-3.980 rpnl:4.860\n",
      "2016-09-26 TICK WIKI/AAPL open: 111.64 close: 112.88\n",
      "2016-09-26 POSITION value:108.730 upnl:-4.150 rpnl:4.860\n",
      "2016-09-27 TICK WIKI/AAPL open: 113.0 close: 113.09\n",
      "2016-09-27 POSITION value:108.730 upnl:-4.360 rpnl:4.860\n",
      "2016-09-28 TICK WIKI/AAPL open: 113.69 close: 113.95\n",
      "2016-09-28 POSITION value:108.730 upnl:-5.220 rpnl:4.860\n",
      "2016-09-29 TICK WIKI/AAPL open: 113.16 close: 112.18\n",
      "2016-09-29 POSITION value:108.730 upnl:-3.450 rpnl:4.860\n",
      "2016-09-30 TICK WIKI/AAPL open: 112.46 close: 113.05\n",
      "2016-09-30 POSITION value:108.730 upnl:-4.320 rpnl:4.860\n",
      "2016-10-03 TICK WIKI/AAPL open: 112.71 close: 112.52\n",
      "2016-10-03 POSITION value:108.730 upnl:-3.790 rpnl:4.860\n",
      "2016-10-04 TICK WIKI/AAPL open: 113.06 close: 113.0\n",
      "2016-10-04 POSITION value:108.730 upnl:-4.270 rpnl:4.860\n",
      "2016-10-05 TICK WIKI/AAPL open: 113.4 close: 113.05\n",
      "2016-10-05 POSITION value:108.730 upnl:-4.320 rpnl:4.860\n",
      "2016-10-06 TICK WIKI/AAPL open: 113.7 close: 113.89\n",
      "2016-10-06 POSITION value:108.730 upnl:-5.160 rpnl:4.860\n",
      "2016-10-07 TICK WIKI/AAPL open: 114.31 close: 114.06\n",
      "2016-10-07 POSITION value:108.730 upnl:-5.330 rpnl:4.860\n",
      "2016-10-10 TICK WIKI/AAPL open: 115.02 close: 116.05\n",
      "2016-10-10 POSITION value:108.730 upnl:-7.320 rpnl:4.860\n",
      "2016-10-11 TICK WIKI/AAPL open: 117.7 close: 116.3\n",
      "2016-10-11 POSITION value:108.730 upnl:-7.570 rpnl:4.860\n",
      "2016-10-12 TICK WIKI/AAPL open: 117.35 close: 117.34\n",
      "2016-10-12 POSITION value:108.730 upnl:-8.610 rpnl:4.860\n",
      "2016-10-13 TICK WIKI/AAPL open: 116.79 close: 116.98\n",
      "2016-10-13 POSITION value:108.730 upnl:-8.250 rpnl:4.860\n",
      "2016-10-14 TICK WIKI/AAPL open: 117.88 close: 117.63\n",
      "2016-10-14 POSITION value:108.730 upnl:-8.900 rpnl:4.860\n",
      "2016-10-17 TICK WIKI/AAPL open: 117.33 close: 117.55\n",
      "2016-10-17 POSITION value:108.730 upnl:-8.820 rpnl:4.860\n",
      "2016-10-18 TICK WIKI/AAPL open: 118.18 close: 117.47\n",
      "2016-10-18 POSITION value:108.730 upnl:-8.740 rpnl:4.860\n",
      "2016-10-19 TICK WIKI/AAPL open: 117.25 close: 117.12\n",
      "2016-10-19 POSITION value:108.730 upnl:-8.390 rpnl:4.860\n",
      "2016-10-20 TICK WIKI/AAPL open: 116.86 close: 117.06\n",
      "2016-10-20 POSITION value:108.730 upnl:-8.330 rpnl:4.860\n",
      "2016-10-21 TICK WIKI/AAPL open: 116.81 close: 116.6\n",
      "2016-10-21 POSITION value:108.730 upnl:-7.870 rpnl:4.860\n",
      "2016-10-24 TICK WIKI/AAPL open: 117.1 close: 117.65\n",
      "2016-10-24 POSITION value:108.730 upnl:-8.920 rpnl:4.860\n",
      "2016-10-25 TICK WIKI/AAPL open: 117.95 close: 118.25\n",
      "2016-10-25 POSITION value:108.730 upnl:-9.520 rpnl:4.860\n",
      "2016-10-26 TICK WIKI/AAPL open: 114.31 close: 115.59\n",
      "2016-10-26 BUY signal\n",
      "2016-10-26 ORDER BUY WIKI/AAPL 1\n",
      "2016-10-26 POSITION value:108.730 upnl:-6.860 rpnl:4.860\n",
      "2016-10-27 TICK WIKI/AAPL open: 115.39 close: 114.48\n",
      "2016-10-27 FILLED BUY 1 WIKI/AAPL at 115.39\n",
      "2016-10-27 POSITION value:0.000 upnl:0.000 rpnl:-6.660\n",
      "2016-10-28 TICK WIKI/AAPL open: 113.87 close: 113.72\n",
      "2016-10-28 POSITION value:0.000 upnl:0.000 rpnl:-6.660\n",
      "2016-10-31 TICK WIKI/AAPL open: 113.65 close: 113.54\n",
      "2016-10-31 POSITION value:0.000 upnl:0.000 rpnl:-6.660\n",
      "2016-11-01 TICK WIKI/AAPL open: 113.46 close: 111.49\n",
      "2016-11-01 BUY signal\n",
      "2016-11-01 ORDER BUY WIKI/AAPL 1\n",
      "2016-11-01 POSITION value:0.000 upnl:0.000 rpnl:-6.660\n",
      "2016-11-02 TICK WIKI/AAPL open: 111.4 close: 111.59\n",
      "2016-11-02 FILLED BUY 1 WIKI/AAPL at 111.4\n",
      "2016-11-02 POSITION value:-111.400 upnl:0.190 rpnl:-6.660\n",
      "2016-11-03 TICK WIKI/AAPL open: 110.98 close: 109.83\n",
      "2016-11-03 POSITION value:-111.400 upnl:-1.570 rpnl:-6.660\n",
      "2016-11-04 TICK WIKI/AAPL open: 108.53 close: 108.84\n",
      "2016-11-04 POSITION value:-111.400 upnl:-2.560 rpnl:-6.660\n",
      "2016-11-07 TICK WIKI/AAPL open: 110.08 close: 110.41\n",
      "2016-11-07 SELL signal\n",
      "2016-11-07 ORDER SELL WIKI/AAPL 1\n",
      "2016-11-07 POSITION value:-111.400 upnl:-0.990 rpnl:-6.660\n",
      "2016-11-08 TICK WIKI/AAPL open: 110.31 close: 111.06\n",
      "2016-11-08 FILLED SELL 1 WIKI/AAPL at 110.31\n",
      "2016-11-08 POSITION value:0.000 upnl:0.000 rpnl:-1.090\n",
      "2016-11-09 TICK WIKI/AAPL open: 109.88 close: 110.88\n",
      "2016-11-09 POSITION value:0.000 upnl:0.000 rpnl:-1.090\n",
      "2016-11-10 TICK WIKI/AAPL open: 111.09 close: 107.79\n",
      "2016-11-10 BUY signal\n",
      "2016-11-10 ORDER BUY WIKI/AAPL 1\n",
      "2016-11-10 POSITION value:0.000 upnl:0.000 rpnl:-1.090\n",
      "2016-11-11 TICK WIKI/AAPL open: 106.92 close: 108.43\n",
      "2016-11-11 FILLED BUY 1 WIKI/AAPL at 106.92\n",
      "2016-11-11 POSITION value:-106.920 upnl:1.510 rpnl:-1.090\n",
      "2016-11-14 TICK WIKI/AAPL open: 107.32 close: 105.71\n",
      "2016-11-14 POSITION value:-106.920 upnl:-1.210 rpnl:-1.090\n",
      "2016-11-15 TICK WIKI/AAPL open: 106.57 close: 107.11\n",
      "2016-11-15 POSITION value:-106.920 upnl:0.190 rpnl:-1.090\n",
      "2016-11-16 TICK WIKI/AAPL open: 106.7 close: 109.99\n",
      "2016-11-16 SELL signal\n",
      "2016-11-16 ORDER SELL WIKI/AAPL 1\n",
      "2016-11-16 POSITION value:-106.920 upnl:3.070 rpnl:-1.090\n",
      "2016-11-17 TICK WIKI/AAPL open: 109.81 close: 109.95\n",
      "2016-11-17 FILLED SELL 1 WIKI/AAPL at 109.81\n",
      "2016-11-17 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-11-18 TICK WIKI/AAPL open: 109.72 close: 110.06\n",
      "2016-11-18 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-11-21 TICK WIKI/AAPL open: 110.12 close: 111.73\n",
      "2016-11-21 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-11-22 TICK WIKI/AAPL open: 111.95 close: 111.8\n",
      "2016-11-22 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-11-23 TICK WIKI/AAPL open: 111.36 close: 111.23\n",
      "2016-11-23 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-11-25 TICK WIKI/AAPL open: 111.13 close: 111.79\n",
      "2016-11-25 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-11-28 TICK WIKI/AAPL open: 111.43 close: 111.57\n",
      "2016-11-28 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-11-29 TICK WIKI/AAPL open: 110.78 close: 111.46\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2016-11-29 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-11-30 TICK WIKI/AAPL open: 111.56 close: 110.52\n",
      "2016-11-30 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-01 TICK WIKI/AAPL open: 110.365 close: 109.49\n",
      "2016-12-01 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-02 TICK WIKI/AAPL open: 109.17 close: 109.9\n",
      "2016-12-02 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-05 TICK WIKI/AAPL open: 110.0 close: 109.11\n",
      "2016-12-05 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-06 TICK WIKI/AAPL open: 109.5 close: 109.95\n",
      "2016-12-06 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-07 TICK WIKI/AAPL open: 109.26 close: 111.03\n",
      "2016-12-07 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-08 TICK WIKI/AAPL open: 110.86 close: 112.12\n",
      "2016-12-08 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-09 TICK WIKI/AAPL open: 112.31 close: 113.95\n",
      "2016-12-09 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-12 TICK WIKI/AAPL open: 113.29 close: 113.3\n",
      "2016-12-12 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-13 TICK WIKI/AAPL open: 113.84 close: 115.19\n",
      "2016-12-13 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-14 TICK WIKI/AAPL open: 115.04 close: 115.19\n",
      "2016-12-14 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-15 TICK WIKI/AAPL open: 115.38 close: 115.82\n",
      "2016-12-15 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-16 TICK WIKI/AAPL open: 116.47 close: 115.97\n",
      "2016-12-16 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-19 TICK WIKI/AAPL open: 115.8 close: 116.64\n",
      "2016-12-19 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-20 TICK WIKI/AAPL open: 116.74 close: 116.95\n",
      "2016-12-20 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-21 TICK WIKI/AAPL open: 116.8 close: 117.06\n",
      "2016-12-21 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-22 TICK WIKI/AAPL open: 116.35 close: 116.29\n",
      "2016-12-22 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-23 TICK WIKI/AAPL open: 115.59 close: 116.52\n",
      "2016-12-23 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-27 TICK WIKI/AAPL open: 116.52 close: 117.26\n",
      "2016-12-27 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-28 TICK WIKI/AAPL open: 117.52 close: 116.76\n",
      "2016-12-28 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-29 TICK WIKI/AAPL open: 116.45 close: 116.73\n",
      "2016-12-29 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-30 TICK WIKI/AAPL open: 116.65 close: 115.82\n",
      "2016-12-30 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-03 TICK WIKI/AAPL open: 115.8 close: 116.15\n",
      "2017-01-03 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-04 TICK WIKI/AAPL open: 115.85 close: 116.02\n",
      "2017-01-04 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-05 TICK WIKI/AAPL open: 115.92 close: 116.61\n",
      "2017-01-05 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-06 TICK WIKI/AAPL open: 116.78 close: 117.91\n",
      "2017-01-06 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-09 TICK WIKI/AAPL open: 117.95 close: 118.99\n",
      "2017-01-09 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-10 TICK WIKI/AAPL open: 118.77 close: 119.11\n",
      "2017-01-10 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-11 TICK WIKI/AAPL open: 118.74 close: 119.75\n",
      "2017-01-11 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-12 TICK WIKI/AAPL open: 118.895 close: 119.25\n",
      "2017-01-12 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-13 TICK WIKI/AAPL open: 119.11 close: 119.04\n",
      "2017-01-13 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-17 TICK WIKI/AAPL open: 118.34 close: 120.0\n",
      "2017-01-17 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-18 TICK WIKI/AAPL open: 120.0 close: 119.99\n",
      "2017-01-18 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-19 TICK WIKI/AAPL open: 119.4 close: 119.78\n",
      "2017-01-19 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-20 TICK WIKI/AAPL open: 120.45 close: 120.0\n",
      "2017-01-20 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-23 TICK WIKI/AAPL open: 120.0 close: 120.08\n",
      "2017-01-23 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-24 TICK WIKI/AAPL open: 119.55 close: 119.97\n",
      "2017-01-24 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-25 TICK WIKI/AAPL open: 120.42 close: 121.88\n",
      "2017-01-25 SELL signal\n",
      "2017-01-25 ORDER SELL WIKI/AAPL 1\n",
      "2017-01-25 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-26 TICK WIKI/AAPL open: 121.67 close: 121.94\n",
      "2017-01-26 FILLED SELL 1 WIKI/AAPL at 121.67\n",
      "2017-01-26 POSITION value:121.670 upnl:-0.270 rpnl:2.890\n",
      "2017-01-27 TICK WIKI/AAPL open: 122.14 close: 121.95\n",
      "2017-01-27 POSITION value:121.670 upnl:-0.280 rpnl:2.890\n",
      "2017-01-30 TICK WIKI/AAPL open: 120.93 close: 121.63\n",
      "2017-01-30 POSITION value:121.670 upnl:0.040 rpnl:2.890\n",
      "2017-01-31 TICK WIKI/AAPL open: 121.15 close: 121.35\n",
      "2017-01-31 POSITION value:121.670 upnl:0.320 rpnl:2.890\n",
      "2017-02-01 TICK WIKI/AAPL open: 127.03 close: 128.75\n",
      "2017-02-01 POSITION value:121.670 upnl:-7.080 rpnl:2.890\n",
      "2017-02-02 TICK WIKI/AAPL open: 127.975 close: 128.53\n",
      "2017-02-02 POSITION value:121.670 upnl:-6.860 rpnl:2.890\n",
      "2017-02-03 TICK WIKI/AAPL open: 128.31 close: 129.08\n",
      "2017-02-03 POSITION value:121.670 upnl:-7.410 rpnl:2.890\n",
      "2017-02-06 TICK WIKI/AAPL open: 129.13 close: 130.29\n",
      "2017-02-06 POSITION value:121.670 upnl:-8.620 rpnl:2.890\n",
      "2017-02-07 TICK WIKI/AAPL open: 130.54 close: 131.53\n",
      "2017-02-07 POSITION value:121.670 upnl:-9.860 rpnl:2.890\n",
      "2017-02-08 TICK WIKI/AAPL open: 131.35 close: 132.04\n",
      "2017-02-08 POSITION value:121.670 upnl:-10.370 rpnl:2.890\n",
      "2017-02-09 TICK WIKI/AAPL open: 131.65 close: 132.42\n",
      "2017-02-09 POSITION value:121.670 upnl:-10.750 rpnl:2.890\n",
      "2017-02-10 TICK WIKI/AAPL open: 132.46 close: 132.12\n",
      "2017-02-10 POSITION value:121.670 upnl:-10.450 rpnl:2.890\n",
      "2017-02-13 TICK WIKI/AAPL open: 133.08 close: 133.29\n",
      "2017-02-13 POSITION value:121.670 upnl:-11.620 rpnl:2.890\n",
      "2017-02-14 TICK WIKI/AAPL open: 133.47 close: 135.02\n",
      "2017-02-14 POSITION value:121.670 upnl:-13.350 rpnl:2.890\n",
      "2017-02-15 TICK WIKI/AAPL open: 135.52 close: 135.51\n",
      "2017-02-15 POSITION value:121.670 upnl:-13.840 rpnl:2.890\n",
      "2017-02-16 TICK WIKI/AAPL open: 135.67 close: 135.345\n",
      "2017-02-16 POSITION value:121.670 upnl:-13.675 rpnl:2.890\n",
      "2017-02-17 TICK WIKI/AAPL open: 135.1 close: 135.72\n",
      "2017-02-17 POSITION value:121.670 upnl:-14.050 rpnl:2.890\n",
      "2017-02-21 TICK WIKI/AAPL open: 136.23 close: 136.7\n",
      "2017-02-21 POSITION value:121.670 upnl:-15.030 rpnl:2.890\n",
      "2017-02-22 TICK WIKI/AAPL open: 136.43 close: 137.11\n",
      "2017-02-22 POSITION value:121.670 upnl:-15.440 rpnl:2.890\n",
      "2017-02-23 TICK WIKI/AAPL open: 137.38 close: 136.53\n",
      "2017-02-23 POSITION value:121.670 upnl:-14.860 rpnl:2.890\n",
      "2017-02-24 TICK WIKI/AAPL open: 135.91 close: 136.66\n",
      "2017-02-24 POSITION value:121.670 upnl:-14.990 rpnl:2.890\n",
      "2017-02-27 TICK WIKI/AAPL open: 137.14 close: 136.93\n",
      "2017-02-27 POSITION value:121.670 upnl:-15.260 rpnl:2.890\n",
      "2017-02-28 TICK WIKI/AAPL open: 137.08 close: 136.99\n",
      "2017-02-28 POSITION value:121.670 upnl:-15.320 rpnl:2.890\n",
      "2017-03-01 TICK WIKI/AAPL open: 137.89 close: 139.79\n",
      "2017-03-01 POSITION value:121.670 upnl:-18.120 rpnl:2.890\n",
      "2017-03-02 TICK WIKI/AAPL open: 140.0 close: 138.96\n",
      "2017-03-02 BUY signal\n",
      "2017-03-02 ORDER BUY WIKI/AAPL 1\n",
      "2017-03-02 POSITION value:121.670 upnl:-17.290 rpnl:2.890\n",
      "2017-03-03 TICK WIKI/AAPL open: 138.78 close: 139.78\n",
      "2017-03-03 FILLED BUY 1 WIKI/AAPL at 138.78\n",
      "2017-03-03 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-06 TICK WIKI/AAPL open: 139.365 close: 139.34\n",
      "2017-03-06 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-07 TICK WIKI/AAPL open: 139.06 close: 139.52\n",
      "2017-03-07 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-08 TICK WIKI/AAPL open: 138.95 close: 139.0\n",
      "2017-03-08 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-09 TICK WIKI/AAPL open: 138.74 close: 138.68\n",
      "2017-03-09 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-10 TICK WIKI/AAPL open: 139.25 close: 139.14\n",
      "2017-03-10 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-13 TICK WIKI/AAPL open: 138.85 close: 139.2\n",
      "2017-03-13 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-14 TICK WIKI/AAPL open: 139.3 close: 138.99\n",
      "2017-03-14 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-15 TICK WIKI/AAPL open: 139.41 close: 140.46\n",
      "2017-03-15 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-16 TICK WIKI/AAPL open: 140.72 close: 140.69\n",
      "2017-03-16 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-17 TICK WIKI/AAPL open: 141.0 close: 139.99\n",
      "2017-03-17 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-20 TICK WIKI/AAPL open: 140.4 close: 141.46\n",
      "2017-03-20 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-21 TICK WIKI/AAPL open: 142.11 close: 139.84\n",
      "2017-03-21 BUY signal\n",
      "2017-03-21 ORDER BUY WIKI/AAPL 1\n",
      "2017-03-21 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-22 TICK WIKI/AAPL open: 139.845 close: 141.42\n",
      "2017-03-22 FILLED BUY 1 WIKI/AAPL at 139.845\n",
      "2017-03-22 POSITION value:-139.845 upnl:1.575 rpnl:-17.110\n",
      "2017-03-23 TICK WIKI/AAPL open: 141.26 close: 140.92\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2017-03-23 POSITION value:-139.845 upnl:1.075 rpnl:-17.110\n",
      "2017-03-24 TICK WIKI/AAPL open: 141.5 close: 140.64\n",
      "2017-03-24 POSITION value:-139.845 upnl:0.795 rpnl:-17.110\n",
      "2017-03-27 TICK WIKI/AAPL open: 139.39 close: 140.88\n",
      "2017-03-27 POSITION value:-139.845 upnl:1.035 rpnl:-17.110\n",
      "2017-03-28 TICK WIKI/AAPL open: 140.91 close: 143.8\n",
      "2017-03-28 SELL signal\n",
      "2017-03-28 ORDER SELL WIKI/AAPL 1\n",
      "2017-03-28 POSITION value:-139.845 upnl:3.955 rpnl:-17.110\n",
      "2017-03-29 TICK WIKI/AAPL open: 143.68 close: 144.12\n",
      "2017-03-29 FILLED SELL 1 WIKI/AAPL at 143.68\n",
      "2017-03-29 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-03-30 TICK WIKI/AAPL open: 144.19 close: 143.93\n",
      "2017-03-30 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-03-31 TICK WIKI/AAPL open: 143.72 close: 143.66\n",
      "2017-03-31 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-03 TICK WIKI/AAPL open: 143.71 close: 143.7\n",
      "2017-04-03 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-04 TICK WIKI/AAPL open: 143.25 close: 144.77\n",
      "2017-04-04 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-05 TICK WIKI/AAPL open: 144.22 close: 144.02\n",
      "2017-04-05 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-06 TICK WIKI/AAPL open: 144.29 close: 143.66\n",
      "2017-04-06 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-07 TICK WIKI/AAPL open: 143.73 close: 143.34\n",
      "2017-04-07 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-10 TICK WIKI/AAPL open: 143.6 close: 143.17\n",
      "2017-04-10 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-11 TICK WIKI/AAPL open: 142.94 close: 141.63\n",
      "2017-04-11 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-12 TICK WIKI/AAPL open: 141.6 close: 141.8\n",
      "2017-04-12 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-13 TICK WIKI/AAPL open: 141.91 close: 141.05\n",
      "2017-04-13 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-17 TICK WIKI/AAPL open: 141.48 close: 141.83\n",
      "2017-04-17 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-18 TICK WIKI/AAPL open: 141.41 close: 141.2\n",
      "2017-04-18 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-19 TICK WIKI/AAPL open: 141.88 close: 140.68\n",
      "2017-04-19 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-20 TICK WIKI/AAPL open: 141.22 close: 142.44\n",
      "2017-04-20 SELL signal\n",
      "2017-04-20 ORDER SELL WIKI/AAPL 1\n",
      "2017-04-20 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-21 TICK WIKI/AAPL open: 142.44 close: 142.27\n",
      "2017-04-21 FILLED SELL 1 WIKI/AAPL at 142.44\n",
      "2017-04-21 POSITION value:142.440 upnl:0.170 rpnl:3.835\n",
      "2017-04-24 TICK WIKI/AAPL open: 143.5 close: 143.64\n",
      "2017-04-24 POSITION value:142.440 upnl:-1.200 rpnl:3.835\n",
      "2017-04-25 TICK WIKI/AAPL open: 143.91 close: 144.54\n",
      "2017-04-25 POSITION value:142.440 upnl:-2.100 rpnl:3.835\n",
      "2017-04-26 TICK WIKI/AAPL open: 144.47 close: 143.6508\n",
      "2017-04-26 POSITION value:142.440 upnl:-1.211 rpnl:3.835\n",
      "2017-04-27 TICK WIKI/AAPL open: 143.9225 close: 143.79\n",
      "2017-04-27 POSITION value:142.440 upnl:-1.350 rpnl:3.835\n",
      "2017-04-28 TICK WIKI/AAPL open: 144.09 close: 143.65\n",
      "2017-04-28 POSITION value:142.440 upnl:-1.210 rpnl:3.835\n",
      "2017-05-01 TICK WIKI/AAPL open: 145.1 close: 146.6\n",
      "2017-05-01 POSITION value:142.440 upnl:-4.160 rpnl:3.835\n",
      "2017-05-02 TICK WIKI/AAPL open: 147.54 close: 147.51\n",
      "2017-05-02 POSITION value:142.440 upnl:-5.070 rpnl:3.835\n",
      "2017-05-03 TICK WIKI/AAPL open: 145.59 close: 147.06\n",
      "2017-05-03 POSITION value:142.440 upnl:-4.620 rpnl:3.835\n",
      "2017-05-04 TICK WIKI/AAPL open: 146.52 close: 146.53\n",
      "2017-05-04 POSITION value:142.440 upnl:-4.090 rpnl:3.835\n",
      "2017-05-05 TICK WIKI/AAPL open: 146.76 close: 148.96\n",
      "2017-05-05 POSITION value:142.440 upnl:-6.520 rpnl:3.835\n",
      "2017-05-08 TICK WIKI/AAPL open: 149.03 close: 153.0\n",
      "2017-05-08 POSITION value:142.440 upnl:-10.560 rpnl:3.835\n",
      "2017-05-09 TICK WIKI/AAPL open: 153.87 close: 153.96\n",
      "2017-05-09 POSITION value:142.440 upnl:-11.520 rpnl:3.835\n",
      "2017-05-10 TICK WIKI/AAPL open: 153.63 close: 153.26\n",
      "2017-05-10 POSITION value:142.440 upnl:-10.820 rpnl:3.835\n",
      "2017-05-11 TICK WIKI/AAPL open: 152.45 close: 153.95\n",
      "2017-05-11 POSITION value:142.440 upnl:-11.510 rpnl:3.835\n",
      "2017-05-12 TICK WIKI/AAPL open: 154.7 close: 156.1\n",
      "2017-05-12 POSITION value:142.440 upnl:-13.660 rpnl:3.835\n",
      "2017-05-15 TICK WIKI/AAPL open: 156.01 close: 155.7\n",
      "2017-05-15 POSITION value:142.440 upnl:-13.260 rpnl:3.835\n",
      "2017-05-16 TICK WIKI/AAPL open: 155.94 close: 155.47\n",
      "2017-05-16 POSITION value:142.440 upnl:-13.030 rpnl:3.835\n",
      "2017-05-17 TICK WIKI/AAPL open: 153.6 close: 150.25\n",
      "2017-05-17 BUY signal\n",
      "2017-05-17 ORDER BUY WIKI/AAPL 1\n",
      "2017-05-17 POSITION value:142.440 upnl:-7.810 rpnl:3.835\n",
      "2017-05-18 TICK WIKI/AAPL open: 151.27 close: 152.54\n",
      "2017-05-18 FILLED BUY 1 WIKI/AAPL at 151.27\n",
      "2017-05-18 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-05-19 TICK WIKI/AAPL open: 153.38 close: 152.96\n",
      "2017-05-19 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-05-22 TICK WIKI/AAPL open: 154.0 close: 153.99\n",
      "2017-05-22 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-05-23 TICK WIKI/AAPL open: 154.9 close: 153.8\n",
      "2017-05-23 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-05-24 TICK WIKI/AAPL open: 153.84 close: 153.34\n",
      "2017-05-24 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-05-25 TICK WIKI/AAPL open: 153.73 close: 153.87\n",
      "2017-05-25 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-05-26 TICK WIKI/AAPL open: 154.0 close: 153.61\n",
      "2017-05-26 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-05-30 TICK WIKI/AAPL open: 153.42 close: 153.67\n",
      "2017-05-30 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-05-31 TICK WIKI/AAPL open: 153.97 close: 152.76\n",
      "2017-05-31 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-06-01 TICK WIKI/AAPL open: 153.17 close: 153.18\n",
      "2017-06-01 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-06-02 TICK WIKI/AAPL open: 153.58 close: 155.45\n",
      "2017-06-02 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-06-05 TICK WIKI/AAPL open: 154.34 close: 153.93\n",
      "2017-06-05 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-06-06 TICK WIKI/AAPL open: 153.9 close: 154.45\n",
      "2017-06-06 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-06-07 TICK WIKI/AAPL open: 155.02 close: 155.37\n",
      "2017-06-07 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-06-08 TICK WIKI/AAPL open: 155.25 close: 154.99\n",
      "2017-06-08 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-06-09 TICK WIKI/AAPL open: 155.19 close: 148.98\n",
      "2017-06-09 BUY signal\n",
      "2017-06-09 ORDER BUY WIKI/AAPL 1\n",
      "2017-06-09 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-06-12 TICK WIKI/AAPL open: 145.74 close: 145.32\n",
      "2017-06-12 FILLED BUY 1 WIKI/AAPL at 145.74\n",
      "2017-06-12 POSITION value:-145.740 upnl:-0.420 rpnl:-8.830\n",
      "2017-06-13 TICK WIKI/AAPL open: 147.16 close: 146.59\n",
      "2017-06-13 POSITION value:-145.740 upnl:0.850 rpnl:-8.830\n",
      "2017-06-14 TICK WIKI/AAPL open: 147.5 close: 145.16\n",
      "2017-06-14 POSITION value:-145.740 upnl:-0.580 rpnl:-8.830\n",
      "2017-06-15 TICK WIKI/AAPL open: 143.32 close: 144.29\n",
      "2017-06-15 POSITION value:-145.740 upnl:-1.450 rpnl:-8.830\n",
      "2017-06-16 TICK WIKI/AAPL open: 143.78 close: 142.27\n",
      "2017-06-16 POSITION value:-145.740 upnl:-3.470 rpnl:-8.830\n",
      "2017-06-19 TICK WIKI/AAPL open: 143.66 close: 146.34\n",
      "2017-06-19 SELL signal\n",
      "2017-06-19 ORDER SELL WIKI/AAPL 1\n",
      "2017-06-19 POSITION value:-145.740 upnl:0.600 rpnl:-8.830\n",
      "2017-06-20 TICK WIKI/AAPL open: 146.87 close: 145.01\n",
      "2017-06-20 FILLED SELL 1 WIKI/AAPL at 146.87\n",
      "2017-06-20 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-21 TICK WIKI/AAPL open: 145.52 close: 145.87\n",
      "2017-06-21 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-22 TICK WIKI/AAPL open: 145.77 close: 145.63\n",
      "2017-06-22 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-23 TICK WIKI/AAPL open: 145.13 close: 146.35\n",
      "2017-06-23 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-26 TICK WIKI/AAPL open: 147.17 close: 145.82\n",
      "2017-06-26 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-27 TICK WIKI/AAPL open: 145.01 close: 143.74\n",
      "2017-06-27 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-28 TICK WIKI/AAPL open: 144.49 close: 145.83\n",
      "2017-06-28 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-29 TICK WIKI/AAPL open: 144.71 close: 143.68\n",
      "2017-06-29 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-30 TICK WIKI/AAPL open: 144.45 close: 144.02\n",
      "2017-06-30 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-03 TICK WIKI/AAPL open: 144.88 close: 143.5\n",
      "2017-07-03 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-05 TICK WIKI/AAPL open: 143.69 close: 144.09\n",
      "2017-07-05 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-06 TICK WIKI/AAPL open: 143.02 close: 142.73\n",
      "2017-07-06 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-07 TICK WIKI/AAPL open: 142.9 close: 144.18\n",
      "2017-07-07 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-10 TICK WIKI/AAPL open: 144.11 close: 145.06\n",
      "2017-07-10 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-11 TICK WIKI/AAPL open: 144.73 close: 145.53\n",
      "2017-07-11 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-12 TICK WIKI/AAPL open: 145.87 close: 145.74\n",
      "2017-07-12 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-13 TICK WIKI/AAPL open: 145.5 close: 147.77\n",
      "2017-07-13 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-14 TICK WIKI/AAPL open: 147.97 close: 149.04\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2017-07-14 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-17 TICK WIKI/AAPL open: 148.82 close: 149.56\n",
      "2017-07-17 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-18 TICK WIKI/AAPL open: 149.2 close: 150.08\n",
      "2017-07-18 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-19 TICK WIKI/AAPL open: 150.48 close: 151.02\n",
      "2017-07-19 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-20 TICK WIKI/AAPL open: 151.5 close: 150.34\n",
      "2017-07-20 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-21 TICK WIKI/AAPL open: 149.99 close: 150.27\n",
      "2017-07-21 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-24 TICK WIKI/AAPL open: 150.58 close: 152.09\n",
      "2017-07-24 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-25 TICK WIKI/AAPL open: 151.8 close: 152.74\n",
      "2017-07-25 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-26 TICK WIKI/AAPL open: 153.35 close: 153.46\n",
      "2017-07-26 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-27 TICK WIKI/AAPL open: 153.75 close: 150.56\n",
      "2017-07-27 BUY signal\n",
      "2017-07-27 ORDER BUY WIKI/AAPL 1\n",
      "2017-07-27 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-28 TICK WIKI/AAPL open: 149.89 close: 149.5\n",
      "2017-07-28 FILLED BUY 1 WIKI/AAPL at 149.89\n",
      "2017-07-28 POSITION value:-149.890 upnl:-0.390 rpnl:1.130\n",
      "2017-07-31 TICK WIKI/AAPL open: 149.9 close: 148.85\n",
      "2017-07-31 POSITION value:-149.890 upnl:-1.040 rpnl:1.130\n",
      "2017-08-01 TICK WIKI/AAPL open: 149.1 close: 150.05\n",
      "2017-08-01 POSITION value:-149.890 upnl:0.160 rpnl:1.130\n",
      "2017-08-02 TICK WIKI/AAPL open: 159.28 close: 157.14\n",
      "2017-08-02 SELL signal\n",
      "2017-08-02 ORDER SELL WIKI/AAPL 1\n",
      "2017-08-02 POSITION value:-149.890 upnl:7.250 rpnl:1.130\n",
      "2017-08-03 TICK WIKI/AAPL open: 157.05 close: 155.57\n",
      "2017-08-03 FILLED SELL 1 WIKI/AAPL at 157.05\n",
      "2017-08-03 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-04 TICK WIKI/AAPL open: 156.07 close: 156.39\n",
      "2017-08-04 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-08 TICK WIKI/AAPL open: 158.6 close: 160.08\n",
      "2017-08-08 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-09 TICK WIKI/AAPL open: 159.26 close: 161.06\n",
      "2017-08-09 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-10 TICK WIKI/AAPL open: 159.9 close: 155.27\n",
      "2017-08-10 BUY signal\n",
      "2017-08-10 ORDER BUY WIKI/AAPL 1\n",
      "2017-08-10 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-11 TICK WIKI/AAPL open: 156.6 close: 157.48\n",
      "2017-08-11 FILLED BUY 1 WIKI/AAPL at 156.6\n",
      "2017-08-11 POSITION value:-156.600 upnl:0.880 rpnl:7.160\n",
      "2017-08-14 TICK WIKI/AAPL open: 159.32 close: 159.85\n",
      "2017-08-14 POSITION value:-156.600 upnl:3.250 rpnl:7.160\n",
      "2017-08-15 TICK WIKI/AAPL open: 160.66 close: 161.6\n",
      "2017-08-15 POSITION value:-156.600 upnl:5.000 rpnl:7.160\n",
      "2017-08-16 TICK WIKI/AAPL open: 161.94 close: 160.95\n",
      "2017-08-16 POSITION value:-156.600 upnl:4.350 rpnl:7.160\n",
      "2017-08-17 TICK WIKI/AAPL open: 160.52 close: 157.87\n",
      "2017-08-17 POSITION value:-156.600 upnl:1.270 rpnl:7.160\n",
      "2017-08-18 TICK WIKI/AAPL open: 157.86 close: 157.5\n",
      "2017-08-18 POSITION value:-156.600 upnl:0.900 rpnl:7.160\n",
      "2017-08-21 TICK WIKI/AAPL open: 157.5 close: 157.21\n",
      "2017-08-21 POSITION value:-156.600 upnl:0.610 rpnl:7.160\n",
      "2017-08-22 TICK WIKI/AAPL open: 158.23 close: 159.78\n",
      "2017-08-22 POSITION value:-156.600 upnl:3.180 rpnl:7.160\n",
      "2017-08-23 TICK WIKI/AAPL open: 159.07 close: 159.98\n",
      "2017-08-23 POSITION value:-156.600 upnl:3.380 rpnl:7.160\n",
      "2017-08-24 TICK WIKI/AAPL open: 160.43 close: 159.27\n",
      "2017-08-24 POSITION value:-156.600 upnl:2.670 rpnl:7.160\n",
      "2017-08-25 TICK WIKI/AAPL open: 159.65 close: 159.86\n",
      "2017-08-25 POSITION value:-156.600 upnl:3.260 rpnl:7.160\n",
      "2017-08-28 TICK WIKI/AAPL open: 160.14 close: 161.47\n",
      "2017-08-28 POSITION value:-156.600 upnl:4.870 rpnl:7.160\n",
      "2017-08-29 TICK WIKI/AAPL open: 160.1 close: 162.91\n",
      "2017-08-29 POSITION value:-156.600 upnl:6.310 rpnl:7.160\n",
      "2017-08-30 TICK WIKI/AAPL open: 163.8 close: 163.35\n",
      "2017-08-30 POSITION value:-156.600 upnl:6.750 rpnl:7.160\n",
      "2017-08-31 TICK WIKI/AAPL open: 163.64 close: 164.0\n",
      "2017-08-31 POSITION value:-156.600 upnl:7.400 rpnl:7.160\n",
      "2017-09-01 TICK WIKI/AAPL open: 164.8 close: 164.05\n",
      "2017-09-01 POSITION value:-156.600 upnl:7.450 rpnl:7.160\n",
      "2017-09-05 TICK WIKI/AAPL open: 163.75 close: 162.08\n",
      "2017-09-05 POSITION value:-156.600 upnl:5.480 rpnl:7.160\n",
      "2017-09-06 TICK WIKI/AAPL open: 162.71 close: 161.91\n",
      "2017-09-06 POSITION value:-156.600 upnl:5.310 rpnl:7.160\n",
      "2017-09-07 TICK WIKI/AAPL open: 162.09 close: 161.26\n",
      "2017-09-07 POSITION value:-156.600 upnl:4.660 rpnl:7.160\n",
      "2017-09-08 TICK WIKI/AAPL open: 160.86 close: 158.63\n",
      "2017-09-08 POSITION value:-156.600 upnl:2.030 rpnl:7.160\n",
      "2017-09-11 TICK WIKI/AAPL open: 160.5 close: 161.5\n",
      "2017-09-11 SELL signal\n",
      "2017-09-11 ORDER SELL WIKI/AAPL 1\n",
      "2017-09-11 POSITION value:-156.600 upnl:4.900 rpnl:7.160\n",
      "2017-09-12 TICK WIKI/AAPL open: 162.61 close: 160.82\n",
      "2017-09-12 FILLED SELL 1 WIKI/AAPL at 162.61\n",
      "2017-09-12 POSITION value:0.000 upnl:0.000 rpnl:6.010\n",
      "2017-09-13 TICK WIKI/AAPL open: 159.87 close: 159.65\n",
      "2017-09-13 POSITION value:0.000 upnl:0.000 rpnl:6.010\n",
      "2017-09-14 TICK WIKI/AAPL open: 158.99 close: 158.28\n",
      "2017-09-14 POSITION value:0.000 upnl:0.000 rpnl:6.010\n",
      "2017-09-15 TICK WIKI/AAPL open: 158.47 close: 159.88\n",
      "2017-09-15 POSITION value:0.000 upnl:0.000 rpnl:6.010\n",
      "2017-09-18 TICK WIKI/AAPL open: 160.11 close: 158.67\n",
      "2017-09-18 POSITION value:0.000 upnl:0.000 rpnl:6.010\n",
      "2017-09-19 TICK WIKI/AAPL open: 159.51 close: 158.73\n",
      "2017-09-19 POSITION value:0.000 upnl:0.000 rpnl:6.010\n",
      "2017-09-20 TICK WIKI/AAPL open: 157.9 close: 156.07\n",
      "2017-09-20 BUY signal\n",
      "2017-09-20 ORDER BUY WIKI/AAPL 1\n",
      "2017-09-20 POSITION value:0.000 upnl:0.000 rpnl:6.010\n",
      "2017-09-21 TICK WIKI/AAPL open: 155.8 close: 153.39\n",
      "2017-09-21 FILLED BUY 1 WIKI/AAPL at 155.8\n",
      "2017-09-21 POSITION value:-155.800 upnl:-2.410 rpnl:6.010\n",
      "2017-09-22 TICK WIKI/AAPL open: 152.02 close: 151.89\n",
      "2017-09-22 POSITION value:-155.800 upnl:-3.910 rpnl:6.010\n",
      "2017-09-25 TICK WIKI/AAPL open: 149.99 close: 150.55\n",
      "2017-09-25 POSITION value:-155.800 upnl:-5.250 rpnl:6.010\n",
      "2017-09-26 TICK WIKI/AAPL open: 151.78 close: 153.14\n",
      "2017-09-26 SELL signal\n",
      "2017-09-26 ORDER SELL WIKI/AAPL 1\n",
      "2017-09-26 POSITION value:-155.800 upnl:-2.660 rpnl:6.010\n",
      "2017-09-27 TICK WIKI/AAPL open: 153.8 close: 154.23\n",
      "2017-09-27 FILLED SELL 1 WIKI/AAPL at 153.8\n",
      "2017-09-27 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-09-28 TICK WIKI/AAPL open: 153.89 close: 153.28\n",
      "2017-09-28 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-09-29 TICK WIKI/AAPL open: 153.21 close: 154.12\n",
      "2017-09-29 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-02 TICK WIKI/AAPL open: 154.26 close: 153.81\n",
      "2017-10-02 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-03 TICK WIKI/AAPL open: 154.01 close: 154.48\n",
      "2017-10-03 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-04 TICK WIKI/AAPL open: 153.63 close: 153.4508\n",
      "2017-10-04 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-05 TICK WIKI/AAPL open: 154.18 close: 155.39\n",
      "2017-10-05 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-06 TICK WIKI/AAPL open: 154.97 close: 155.3\n",
      "2017-10-06 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-09 TICK WIKI/AAPL open: 155.81 close: 155.84\n",
      "2017-10-09 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-10 TICK WIKI/AAPL open: 156.055 close: 155.9\n",
      "2017-10-10 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-11 TICK WIKI/AAPL open: 155.97 close: 156.55\n",
      "2017-10-11 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-12 TICK WIKI/AAPL open: 156.35 close: 156.0\n",
      "2017-10-12 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-13 TICK WIKI/AAPL open: 156.73 close: 156.99\n",
      "2017-10-13 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-16 TICK WIKI/AAPL open: 157.9 close: 159.88\n",
      "2017-10-16 SELL signal\n",
      "2017-10-16 ORDER SELL WIKI/AAPL 1\n",
      "2017-10-16 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-17 TICK WIKI/AAPL open: 159.78 close: 160.47\n",
      "2017-10-17 FILLED SELL 1 WIKI/AAPL at 159.78\n",
      "2017-10-17 POSITION value:159.780 upnl:-0.690 rpnl:-2.000\n",
      "2017-10-18 TICK WIKI/AAPL open: 160.42 close: 159.76\n",
      "2017-10-18 POSITION value:159.780 upnl:0.020 rpnl:-2.000\n",
      "2017-10-19 TICK WIKI/AAPL open: 156.75 close: 155.98\n",
      "2017-10-19 BUY signal\n",
      "2017-10-19 ORDER BUY WIKI/AAPL 1\n",
      "2017-10-19 POSITION value:159.780 upnl:3.800 rpnl:-2.000\n",
      "2017-10-20 TICK WIKI/AAPL open: 156.61 close: 156.16\n",
      "2017-10-20 FILLED BUY 1 WIKI/AAPL at 156.61\n",
      "2017-10-20 POSITION value:0.000 upnl:0.000 rpnl:3.170\n",
      "2017-10-23 TICK WIKI/AAPL open: 156.89 close: 156.17\n",
      "2017-10-23 POSITION value:0.000 upnl:0.000 rpnl:3.170\n",
      "2017-10-24 TICK WIKI/AAPL open: 156.29 close: 157.1\n",
      "2017-10-24 POSITION value:0.000 upnl:0.000 rpnl:3.170\n",
      "2017-10-25 TICK WIKI/AAPL open: 156.91 close: 156.405\n",
      "2017-10-25 POSITION value:0.000 upnl:0.000 rpnl:3.170\n",
      "2017-10-26 TICK WIKI/AAPL open: 157.23 close: 157.41\n",
      "2017-10-26 POSITION value:0.000 upnl:0.000 rpnl:3.170\n",
      "2017-10-27 TICK WIKI/AAPL open: 159.29 close: 163.05\n",
      "2017-10-27 SELL signal\n",
      "2017-10-27 ORDER SELL WIKI/AAPL 1\n",
      "2017-10-27 POSITION value:0.000 upnl:0.000 rpnl:3.170\n",
      "2017-10-30 TICK WIKI/AAPL open: 163.89 close: 166.72\n",
      "2017-10-30 FILLED SELL 1 WIKI/AAPL at 163.89\n",
      "2017-10-30 POSITION value:163.890 upnl:-2.830 rpnl:3.170\n",
      "2017-10-31 TICK WIKI/AAPL open: 167.9 close: 169.04\n",
      "2017-10-31 POSITION value:163.890 upnl:-5.150 rpnl:3.170\n",
      "2017-11-01 TICK WIKI/AAPL open: 169.87 close: 166.89\n",
      "2017-11-01 POSITION value:163.890 upnl:-3.000 rpnl:3.170\n",
      "2017-11-02 TICK WIKI/AAPL open: 167.64 close: 168.11\n",
      "2017-11-02 POSITION value:163.890 upnl:-4.220 rpnl:3.170\n",
      "2017-11-03 TICK WIKI/AAPL open: 174.0 close: 172.5\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2017-11-03 POSITION value:163.890 upnl:-8.610 rpnl:3.170\n",
      "2017-11-06 TICK WIKI/AAPL open: 172.365 close: 174.25\n",
      "2017-11-06 POSITION value:163.890 upnl:-10.360 rpnl:3.170\n",
      "2017-11-07 TICK WIKI/AAPL open: 173.91 close: 174.81\n",
      "2017-11-07 POSITION value:163.890 upnl:-10.920 rpnl:3.170\n",
      "2017-11-09 TICK WIKI/AAPL open: 175.11 close: 175.88\n",
      "2017-11-09 POSITION value:163.890 upnl:-11.990 rpnl:3.170\n",
      "2017-11-10 TICK WIKI/AAPL open: 175.11 close: 174.67\n",
      "2017-11-10 POSITION value:163.890 upnl:-10.780 rpnl:3.170\n",
      "2017-11-13 TICK WIKI/AAPL open: 173.5 close: 173.97\n",
      "2017-11-13 POSITION value:163.890 upnl:-10.080 rpnl:3.170\n",
      "2017-11-14 TICK WIKI/AAPL open: 173.04 close: 171.34\n",
      "2017-11-14 POSITION value:163.890 upnl:-7.450 rpnl:3.170\n",
      "2017-11-15 TICK WIKI/AAPL open: 169.97 close: 169.08\n",
      "2017-11-15 POSITION value:163.890 upnl:-5.190 rpnl:3.170\n",
      "2017-11-16 TICK WIKI/AAPL open: 171.18 close: 171.1\n",
      "2017-11-16 POSITION value:163.890 upnl:-7.210 rpnl:3.170\n",
      "2017-11-17 TICK WIKI/AAPL open: 171.04 close: 170.15\n",
      "2017-11-17 POSITION value:163.890 upnl:-6.260 rpnl:3.170\n",
      "2017-11-20 TICK WIKI/AAPL open: 170.29 close: 169.98\n",
      "2017-11-20 POSITION value:163.890 upnl:-6.090 rpnl:3.170\n",
      "2017-11-21 TICK WIKI/AAPL open: 170.78 close: 173.14\n",
      "2017-11-21 POSITION value:163.890 upnl:-9.250 rpnl:3.170\n",
      "2017-11-22 TICK WIKI/AAPL open: 173.36 close: 174.96\n",
      "2017-11-22 POSITION value:163.890 upnl:-11.070 rpnl:3.170\n",
      "2017-11-24 TICK WIKI/AAPL open: 175.1 close: 174.97\n",
      "2017-11-24 POSITION value:163.890 upnl:-11.080 rpnl:3.170\n",
      "2017-11-27 TICK WIKI/AAPL open: 175.05 close: 174.09\n",
      "2017-11-27 POSITION value:163.890 upnl:-10.200 rpnl:3.170\n",
      "2017-11-28 TICK WIKI/AAPL open: 174.3 close: 173.07\n",
      "2017-11-28 POSITION value:163.890 upnl:-9.180 rpnl:3.170\n",
      "2017-11-29 TICK WIKI/AAPL open: 172.63 close: 169.48\n",
      "2017-11-29 BUY signal\n",
      "2017-11-29 ORDER BUY WIKI/AAPL 1\n",
      "2017-11-29 POSITION value:163.890 upnl:-5.590 rpnl:3.170\n",
      "2017-11-30 TICK WIKI/AAPL open: 170.43 close: 171.85\n",
      "2017-11-30 FILLED BUY 1 WIKI/AAPL at 170.43\n",
      "2017-11-30 POSITION value:0.000 upnl:0.000 rpnl:-6.540\n",
      "2017-12-01 TICK WIKI/AAPL open: 169.95 close: 171.05\n",
      "2017-12-01 POSITION value:0.000 upnl:0.000 rpnl:-6.540\n",
      "2017-12-04 TICK WIKI/AAPL open: 172.48 close: 169.8\n",
      "2017-12-04 POSITION value:0.000 upnl:0.000 rpnl:-6.540\n",
      "2017-12-05 TICK WIKI/AAPL open: 169.06 close: 169.64\n",
      "2017-12-05 POSITION value:0.000 upnl:0.000 rpnl:-6.540\n",
      "2017-12-06 TICK WIKI/AAPL open: 167.5 close: 169.01\n",
      "2017-12-06 POSITION value:0.000 upnl:0.000 rpnl:-6.540\n",
      "2017-12-07 TICK WIKI/AAPL open: 169.03 close: 169.452\n",
      "2017-12-07 POSITION value:0.000 upnl:0.000 rpnl:-6.540\n",
      "2017-12-08 TICK WIKI/AAPL open: 170.49 close: 169.37\n",
      "2017-12-08 POSITION value:0.000 upnl:0.000 rpnl:-6.540\n",
      "2017-12-11 TICK WIKI/AAPL open: 169.2 close: 172.67\n",
      "2017-12-11 SELL signal\n",
      "2017-12-11 ORDER SELL WIKI/AAPL 1\n",
      "2017-12-11 POSITION value:0.000 upnl:0.000 rpnl:-6.540\n",
      "2017-12-12 TICK WIKI/AAPL open: 172.15 close: 171.7\n",
      "2017-12-12 FILLED SELL 1 WIKI/AAPL at 172.15\n",
      "2017-12-12 POSITION value:172.150 upnl:0.450 rpnl:-6.540\n",
      "2017-12-13 TICK WIKI/AAPL open: 172.5 close: 172.27\n",
      "2017-12-13 POSITION value:172.150 upnl:-0.120 rpnl:-6.540\n",
      "2017-12-14 TICK WIKI/AAPL open: 172.4 close: 172.22\n",
      "2017-12-14 POSITION value:172.150 upnl:-0.070 rpnl:-6.540\n",
      "2017-12-15 TICK WIKI/AAPL open: 173.63 close: 173.87\n",
      "2017-12-15 POSITION value:172.150 upnl:-1.720 rpnl:-6.540\n",
      "2017-12-18 TICK WIKI/AAPL open: 174.88 close: 176.42\n",
      "2017-12-18 POSITION value:172.150 upnl:-4.270 rpnl:-6.540\n",
      "2017-12-19 TICK WIKI/AAPL open: 175.03 close: 174.54\n",
      "2017-12-19 POSITION value:172.150 upnl:-2.390 rpnl:-6.540\n",
      "2017-12-20 TICK WIKI/AAPL open: 174.87 close: 174.35\n",
      "2017-12-20 POSITION value:172.150 upnl:-2.200 rpnl:-6.540\n",
      "2017-12-21 TICK WIKI/AAPL open: 174.17 close: 175.01\n",
      "2017-12-21 POSITION value:172.150 upnl:-2.860 rpnl:-6.540\n",
      "2017-12-22 TICK WIKI/AAPL open: 174.68 close: 175.01\n",
      "2017-12-22 POSITION value:172.150 upnl:-2.860 rpnl:-6.540\n",
      "2017-12-26 TICK WIKI/AAPL open: 170.8 close: 170.57\n",
      "2017-12-26 BUY signal\n",
      "2017-12-26 ORDER BUY WIKI/AAPL 1\n",
      "2017-12-26 POSITION value:172.150 upnl:1.580 rpnl:-6.540\n",
      "2017-12-27 TICK WIKI/AAPL open: 170.1 close: 170.6\n",
      "2017-12-27 FILLED BUY 1 WIKI/AAPL at 170.1\n",
      "2017-12-27 POSITION value:0.000 upnl:0.000 rpnl:2.050\n",
      "2017-12-28 TICK WIKI/AAPL open: 171.0 close: 171.08\n",
      "2017-12-28 POSITION value:0.000 upnl:0.000 rpnl:2.050\n",
      "2017-12-29 TICK WIKI/AAPL open: 170.52 close: 169.23\n",
      "2017-12-29 POSITION value:0.000 upnl:0.000 rpnl:2.050\n",
      "Backtest completed.\n"
     ]
    }
   ],
   "source": [
    "engine.start(\n",
    "    lookback_intervals=20,\n",
    "    buy_threshold=-1.5,\n",
    "    sell_threshold=1.5\n",
    ")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAssAAAG+CAYAAABlD0k0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4yLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvhp/UCwAAIABJREFUeJzsvXmcJWV59n9VnX3rPqf79PT0xnT37MM+DCPLgCwKAVEWjSYmriSoKGYxMer7/n5v9H3j9sbEiFFDBIKIBBeIMQEVUJBxgGEYQLZZu2fpnpme3pez1fr+Uec53dP0cpaqeqrq3N/PZz7ozOmqp7vPqbrreq77ugVd10EQBEEQBEEQxBsReS+AIAiCIAiCIJwKFcsEQRAEQ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OyZkr4Q/vlPLhhmjxDxiUd84hGf4YhNPOIzHLGJR3ziEZ/ZVWSyvCHptZJ+2wWHROAA4hOP+MQjPsMRm3jEZzhiE4/4xCM+s6uwZBkAAACYdoUddw0AAABMO5JlAAAAYAiSZQAAAGAIkmUAAABgCJJlAAAAYAiSZQAAAGAIkmUAAABgCJJlAAAAYIj/D3kpMYoVrSw+AAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 864x576 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "%matplotlib inline\n",
    "import matplotlib.pyplot as plt\n",
    "\n",
    "engine.df_rpnl.plot(figsize=(12, 8));"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Multiple runs of the backtest engine"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "THRESHOLDS = [\n",
    "    (-0.5, 0.5),\n",
    "    (-1.5, 1.5),\n",
    "    (-2.5, 2.0),\n",
    "    (-1.5, 2.5),\n",
    "]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Backtest started...\n",
      "Processing total_ticks: 753\n",
      "2015-01-02 TICK WIKI/AAPL open: 111.39 close: 109.33\n",
      "2015-01-05 TICK WIKI/AAPL open: 108.29 close: 106.25\n",
      "2015-01-06 TICK WIKI/AAPL open: 106.54 close: 106.26\n",
      "2015-01-07 TICK WIKI/AAPL open: 107.2 close: 107.75\n",
      "2015-01-08 TICK WIKI/AAPL open: 109.23 close: 111.89\n",
      "2015-01-09 TICK WIKI/AAPL open: 112.67 close: 112.01\n",
      "2015-01-12 TICK WIKI/AAPL open: 112.6 close: 109.25\n",
      "2015-01-13 TICK WIKI/AAPL open: 111.43 close: 110.22\n",
      "2015-01-14 TICK WIKI/AAPL open: 109.04 close: 109.8\n",
      "2015-01-15 TICK WIKI/AAPL open: 110.0 close: 106.82\n",
      "2015-01-16 TICK WIKI/AAPL open: 107.03 close: 105.99\n",
      "2015-01-20 TICK WIKI/AAPL open: 107.84 close: 108.72\n",
      "2015-01-21 TICK WIKI/AAPL open: 108.95 close: 109.55\n",
      "2015-01-22 TICK WIKI/AAPL open: 110.26 close: 112.4\n",
      "2015-01-23 TICK WIKI/AAPL open: 112.3 close: 112.98\n",
      "2015-01-26 TICK WIKI/AAPL open: 113.74 close: 113.1\n",
      "2015-01-27 TICK WIKI/AAPL open: 112.42 close: 109.14\n",
      "2015-01-28 TICK WIKI/AAPL open: 117.625 close: 115.31\n",
      "2015-01-29 TICK WIKI/AAPL open: 116.32 close: 118.9\n",
      "2015-01-30 TICK WIKI/AAPL open: 118.4 close: 117.16\n",
      "2015-01-30 BUY signal\n",
      "2015-01-30 ORDER BUY WIKI/AAPL 1\n",
      "2015-02-02 TICK WIKI/AAPL open: 118.05 close: 118.63\n",
      "2015-02-02 FILLED BUY 1 WIKI/AAPL at 118.05\n",
      "2015-02-02 POSITION value:-118.050 upnl:0.580 rpnl:0.000\n",
      "2015-02-03 TICK WIKI/AAPL open: 118.5 close: 118.65\n",
      "2015-02-03 POSITION value:-118.050 upnl:0.600 rpnl:0.000\n",
      "2015-02-04 TICK WIKI/AAPL open: 118.5 close: 119.56\n",
      "2015-02-04 POSITION value:-118.050 upnl:1.510 rpnl:0.000\n",
      "2015-02-05 TICK WIKI/AAPL open: 120.02 close: 119.94\n",
      "2015-02-05 POSITION value:-118.050 upnl:1.890 rpnl:0.000\n",
      "2015-02-06 TICK WIKI/AAPL open: 120.02 close: 118.93\n",
      "2015-02-06 POSITION value:-118.050 upnl:0.880 rpnl:0.000\n",
      "2015-02-09 TICK WIKI/AAPL open: 118.55 close: 119.72\n",
      "2015-02-09 POSITION value:-118.050 upnl:1.670 rpnl:0.000\n",
      "2015-02-10 TICK WIKI/AAPL open: 120.17 close: 122.02\n",
      "2015-02-10 SELL signal\n",
      "2015-02-10 ORDER SELL WIKI/AAPL 1\n",
      "2015-02-10 POSITION value:-118.050 upnl:3.970 rpnl:0.000\n",
      "2015-02-11 TICK WIKI/AAPL open: 122.77 close: 124.88\n",
      "2015-02-11 FILLED SELL 1 WIKI/AAPL at 122.77\n",
      "2015-02-11 SELL signal\n",
      "2015-02-11 ORDER SELL WIKI/AAPL 1\n",
      "2015-02-11 POSITION value:0.000 upnl:0.000 rpnl:4.720\n",
      "2015-02-12 TICK WIKI/AAPL open: 126.06 close: 126.46\n",
      "2015-02-12 FILLED SELL 1 WIKI/AAPL at 126.06\n",
      "2015-02-12 POSITION value:126.060 upnl:-0.400 rpnl:4.720\n",
      "2015-02-13 TICK WIKI/AAPL open: 127.28 close: 127.08\n",
      "2015-02-13 POSITION value:126.060 upnl:-1.020 rpnl:4.720\n",
      "2015-02-17 TICK WIKI/AAPL open: 127.49 close: 127.83\n",
      "2015-02-17 POSITION value:126.060 upnl:-1.770 rpnl:4.720\n",
      "2015-02-18 TICK WIKI/AAPL open: 127.625 close: 128.715\n",
      "2015-02-18 POSITION value:126.060 upnl:-2.655 rpnl:4.720\n",
      "2015-02-19 TICK WIKI/AAPL open: 128.48 close: 128.45\n",
      "2015-02-19 BUY signal\n",
      "2015-02-19 ORDER BUY WIKI/AAPL 1\n",
      "2015-02-19 POSITION value:126.060 upnl:-2.390 rpnl:4.720\n",
      "2015-02-20 TICK WIKI/AAPL open: 128.62 close: 129.495\n",
      "2015-02-20 FILLED BUY 1 WIKI/AAPL at 128.62\n",
      "2015-02-20 POSITION value:0.000 upnl:0.000 rpnl:-2.560\n",
      "2015-02-23 TICK WIKI/AAPL open: 130.02 close: 133.0\n",
      "2015-02-23 SELL signal\n",
      "2015-02-23 ORDER SELL WIKI/AAPL 1\n",
      "2015-02-23 POSITION value:0.000 upnl:0.000 rpnl:-2.560\n",
      "2015-02-24 TICK WIKI/AAPL open: 132.94 close: 132.17\n",
      "2015-02-24 FILLED SELL 1 WIKI/AAPL at 132.94\n",
      "2015-02-24 BUY signal\n",
      "2015-02-24 ORDER BUY WIKI/AAPL 1\n",
      "2015-02-24 POSITION value:132.940 upnl:0.770 rpnl:-2.560\n",
      "2015-02-25 TICK WIKI/AAPL open: 131.56 close: 128.79\n",
      "2015-02-25 FILLED BUY 1 WIKI/AAPL at 131.56\n",
      "2015-02-25 BUY signal\n",
      "2015-02-25 ORDER BUY WIKI/AAPL 1\n",
      "2015-02-25 POSITION value:0.000 upnl:0.000 rpnl:1.380\n",
      "2015-02-26 TICK WIKI/AAPL open: 128.785 close: 130.415\n",
      "2015-02-26 FILLED BUY 1 WIKI/AAPL at 128.785\n",
      "2015-02-26 SELL signal\n",
      "2015-02-26 ORDER SELL WIKI/AAPL 1\n",
      "2015-02-26 POSITION value:-128.785 upnl:1.630 rpnl:1.380\n",
      "2015-02-27 TICK WIKI/AAPL open: 130.0 close: 128.46\n",
      "2015-02-27 FILLED SELL 1 WIKI/AAPL at 130.0\n",
      "2015-02-27 BUY signal\n",
      "2015-02-27 ORDER BUY WIKI/AAPL 1\n",
      "2015-02-27 POSITION value:0.000 upnl:0.000 rpnl:1.215\n",
      "2015-03-02 TICK WIKI/AAPL open: 129.25 close: 129.09\n",
      "2015-03-02 FILLED BUY 1 WIKI/AAPL at 129.25\n",
      "2015-03-02 POSITION value:-129.250 upnl:-0.160 rpnl:1.215\n",
      "2015-03-03 TICK WIKI/AAPL open: 128.96 close: 129.36\n",
      "2015-03-03 POSITION value:-129.250 upnl:0.110 rpnl:1.215\n",
      "2015-03-04 TICK WIKI/AAPL open: 129.1 close: 128.54\n",
      "2015-03-04 POSITION value:-129.250 upnl:-0.710 rpnl:1.215\n",
      "2015-03-05 TICK WIKI/AAPL open: 128.58 close: 126.41\n",
      "2015-03-05 POSITION value:-129.250 upnl:-2.840 rpnl:1.215\n",
      "2015-03-06 TICK WIKI/AAPL open: 128.4 close: 126.6\n",
      "2015-03-06 POSITION value:-129.250 upnl:-2.650 rpnl:1.215\n",
      "2015-03-09 TICK WIKI/AAPL open: 127.96 close: 127.14\n",
      "2015-03-09 POSITION value:-129.250 upnl:-2.110 rpnl:1.215\n",
      "2015-03-10 TICK WIKI/AAPL open: 126.41 close: 124.51\n",
      "2015-03-10 POSITION value:-129.250 upnl:-4.740 rpnl:1.215\n",
      "2015-03-11 TICK WIKI/AAPL open: 124.75 close: 122.24\n",
      "2015-03-11 POSITION value:-129.250 upnl:-7.010 rpnl:1.215\n",
      "2015-03-12 TICK WIKI/AAPL open: 122.31 close: 124.45\n",
      "2015-03-12 SELL signal\n",
      "2015-03-12 ORDER SELL WIKI/AAPL 1\n",
      "2015-03-12 POSITION value:-129.250 upnl:-4.800 rpnl:1.215\n",
      "2015-03-13 TICK WIKI/AAPL open: 124.4 close: 123.59\n",
      "2015-03-13 FILLED SELL 1 WIKI/AAPL at 124.4\n",
      "2015-03-13 POSITION value:0.000 upnl:0.000 rpnl:-4.850\n",
      "2015-03-16 TICK WIKI/AAPL open: 123.88 close: 124.95\n",
      "2015-03-16 SELL signal\n",
      "2015-03-16 ORDER SELL WIKI/AAPL 1\n",
      "2015-03-16 POSITION value:0.000 upnl:0.000 rpnl:-4.850\n",
      "2015-03-17 TICK WIKI/AAPL open: 125.9 close: 127.04\n",
      "2015-03-17 FILLED SELL 1 WIKI/AAPL at 125.9\n",
      "2015-03-17 POSITION value:125.900 upnl:-1.140 rpnl:-4.850\n",
      "2015-03-18 TICK WIKI/AAPL open: 127.0 close: 128.47\n",
      "2015-03-18 POSITION value:125.900 upnl:-2.570 rpnl:-4.850\n",
      "2015-03-19 TICK WIKI/AAPL open: 128.75 close: 127.495\n",
      "2015-03-19 POSITION value:125.900 upnl:-1.595 rpnl:-4.850\n",
      "2015-03-20 TICK WIKI/AAPL open: 128.25 close: 125.9\n",
      "2015-03-20 BUY signal\n",
      "2015-03-20 ORDER BUY WIKI/AAPL 1\n",
      "2015-03-20 POSITION value:125.900 upnl:0.000 rpnl:-4.850\n",
      "2015-03-23 TICK WIKI/AAPL open: 127.12 close: 127.21\n",
      "2015-03-23 FILLED BUY 1 WIKI/AAPL at 127.12\n",
      "2015-03-23 SELL signal\n",
      "2015-03-23 ORDER SELL WIKI/AAPL 1\n",
      "2015-03-23 POSITION value:0.000 upnl:0.000 rpnl:-1.220\n",
      "2015-03-24 TICK WIKI/AAPL open: 127.23 close: 126.69\n",
      "2015-03-24 FILLED SELL 1 WIKI/AAPL at 127.23\n",
      "2015-03-24 POSITION value:127.230 upnl:0.540 rpnl:-1.220\n",
      "2015-03-25 TICK WIKI/AAPL open: 126.54 close: 123.38\n",
      "2015-03-25 BUY signal\n",
      "2015-03-25 ORDER BUY WIKI/AAPL 1\n",
      "2015-03-25 POSITION value:127.230 upnl:3.850 rpnl:-1.220\n",
      "2015-03-26 TICK WIKI/AAPL open: 122.76 close: 124.24\n",
      "2015-03-26 FILLED BUY 1 WIKI/AAPL at 122.76\n",
      "2015-03-26 SELL signal\n",
      "2015-03-26 ORDER SELL WIKI/AAPL 1\n",
      "2015-03-26 POSITION value:0.000 upnl:0.000 rpnl:4.470\n",
      "2015-03-27 TICK WIKI/AAPL open: 124.57 close: 123.25\n",
      "2015-03-27 FILLED SELL 1 WIKI/AAPL at 124.57\n",
      "2015-03-27 POSITION value:124.570 upnl:1.320 rpnl:4.470\n",
      "2015-03-30 TICK WIKI/AAPL open: 124.05 close: 126.37\n",
      "2015-03-30 POSITION value:124.570 upnl:-1.800 rpnl:4.470\n",
      "2015-03-31 TICK WIKI/AAPL open: 126.09 close: 124.43\n",
      "2015-03-31 BUY signal\n",
      "2015-03-31 ORDER BUY WIKI/AAPL 1\n",
      "2015-03-31 POSITION value:124.570 upnl:0.140 rpnl:4.470\n",
      "2015-04-01 TICK WIKI/AAPL open: 124.82 close: 124.25\n",
      "2015-04-01 FILLED BUY 1 WIKI/AAPL at 124.82\n",
      "2015-04-01 POSITION value:0.000 upnl:0.000 rpnl:-0.250\n",
      "2015-04-02 TICK WIKI/AAPL open: 125.03 close: 125.32\n",
      "2015-04-02 SELL signal\n",
      "2015-04-02 ORDER SELL WIKI/AAPL 1\n",
      "2015-04-02 POSITION value:0.000 upnl:0.000 rpnl:-0.250\n",
      "2015-04-06 TICK WIKI/AAPL open: 124.47 close: 127.35\n",
      "2015-04-06 FILLED SELL 1 WIKI/AAPL at 124.47\n",
      "2015-04-06 POSITION value:124.470 upnl:-2.880 rpnl:-0.250\n",
      "2015-04-07 TICK WIKI/AAPL open: 127.64 close: 126.01\n",
      "2015-04-07 BUY signal\n",
      "2015-04-07 ORDER BUY WIKI/AAPL 1\n",
      "2015-04-07 POSITION value:124.470 upnl:-1.540 rpnl:-0.250\n",
      "2015-04-08 TICK WIKI/AAPL open: 125.85 close: 125.6\n",
      "2015-04-08 FILLED BUY 1 WIKI/AAPL at 125.85\n",
      "2015-04-08 POSITION value:0.000 upnl:0.000 rpnl:-1.380\n",
      "2015-04-09 TICK WIKI/AAPL open: 125.85 close: 126.56\n",
      "2015-04-09 SELL signal\n",
      "2015-04-09 ORDER SELL WIKI/AAPL 1\n",
      "2015-04-09 POSITION value:0.000 upnl:0.000 rpnl:-1.380\n",
      "2015-04-10 TICK WIKI/AAPL open: 125.95 close: 127.1\n",
      "2015-04-10 FILLED SELL 1 WIKI/AAPL at 125.95\n",
      "2015-04-10 POSITION value:125.950 upnl:-1.150 rpnl:-1.380\n",
      "2015-04-13 TICK WIKI/AAPL open: 128.37 close: 126.85\n",
      "2015-04-13 POSITION value:125.950 upnl:-0.900 rpnl:-1.380\n",
      "2015-04-14 TICK WIKI/AAPL open: 127.0 close: 126.3\n",
      "2015-04-14 POSITION value:125.950 upnl:-0.350 rpnl:-1.380\n",
      "2015-04-15 TICK WIKI/AAPL open: 126.41 close: 126.78\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2015-04-15 POSITION value:125.950 upnl:-0.830 rpnl:-1.380\n",
      "2015-04-16 TICK WIKI/AAPL open: 126.28 close: 126.17\n",
      "2015-04-16 POSITION value:125.950 upnl:-0.220 rpnl:-1.380\n",
      "2015-04-17 TICK WIKI/AAPL open: 125.55 close: 124.75\n",
      "2015-04-17 BUY signal\n",
      "2015-04-17 ORDER BUY WIKI/AAPL 1\n",
      "2015-04-17 POSITION value:125.950 upnl:1.200 rpnl:-1.380\n",
      "2015-04-20 TICK WIKI/AAPL open: 125.57 close: 127.6\n",
      "2015-04-20 FILLED BUY 1 WIKI/AAPL at 125.57\n",
      "2015-04-20 SELL signal\n",
      "2015-04-20 ORDER SELL WIKI/AAPL 1\n",
      "2015-04-20 POSITION value:0.000 upnl:0.000 rpnl:0.380\n",
      "2015-04-21 TICK WIKI/AAPL open: 128.1 close: 126.91\n",
      "2015-04-21 FILLED SELL 1 WIKI/AAPL at 128.1\n",
      "2015-04-21 POSITION value:128.100 upnl:1.190 rpnl:0.380\n",
      "2015-04-22 TICK WIKI/AAPL open: 126.99 close: 128.62\n",
      "2015-04-22 POSITION value:128.100 upnl:-0.520 rpnl:0.380\n",
      "2015-04-23 TICK WIKI/AAPL open: 128.3 close: 129.67\n",
      "2015-04-23 POSITION value:128.100 upnl:-1.570 rpnl:0.380\n",
      "2015-04-24 TICK WIKI/AAPL open: 130.49 close: 130.28\n",
      "2015-04-24 POSITION value:128.100 upnl:-2.180 rpnl:0.380\n",
      "2015-04-27 TICK WIKI/AAPL open: 132.31 close: 132.65\n",
      "2015-04-27 POSITION value:128.100 upnl:-4.550 rpnl:0.380\n",
      "2015-04-28 TICK WIKI/AAPL open: 134.455 close: 130.56\n",
      "2015-04-28 BUY signal\n",
      "2015-04-28 ORDER BUY WIKI/AAPL 1\n",
      "2015-04-28 POSITION value:128.100 upnl:-2.460 rpnl:0.380\n",
      "2015-04-29 TICK WIKI/AAPL open: 130.16 close: 128.64\n",
      "2015-04-29 FILLED BUY 1 WIKI/AAPL at 130.16\n",
      "2015-04-29 BUY signal\n",
      "2015-04-29 ORDER BUY WIKI/AAPL 1\n",
      "2015-04-29 POSITION value:0.000 upnl:0.000 rpnl:-2.060\n",
      "2015-04-30 TICK WIKI/AAPL open: 127.5 close: 125.15\n",
      "2015-04-30 FILLED BUY 1 WIKI/AAPL at 127.5\n",
      "2015-04-30 POSITION value:-127.500 upnl:-2.350 rpnl:-2.060\n",
      "2015-05-01 TICK WIKI/AAPL open: 126.1 close: 128.95\n",
      "2015-05-01 SELL signal\n",
      "2015-05-01 ORDER SELL WIKI/AAPL 1\n",
      "2015-05-01 POSITION value:-127.500 upnl:1.450 rpnl:-2.060\n",
      "2015-05-04 TICK WIKI/AAPL open: 129.5 close: 128.7\n",
      "2015-05-04 FILLED SELL 1 WIKI/AAPL at 129.5\n",
      "2015-05-04 POSITION value:0.000 upnl:0.000 rpnl:2.000\n",
      "2015-05-05 TICK WIKI/AAPL open: 128.15 close: 125.8\n",
      "2015-05-05 BUY signal\n",
      "2015-05-05 ORDER BUY WIKI/AAPL 1\n",
      "2015-05-05 POSITION value:0.000 upnl:0.000 rpnl:2.000\n",
      "2015-05-06 TICK WIKI/AAPL open: 126.56 close: 125.01\n",
      "2015-05-06 FILLED BUY 1 WIKI/AAPL at 126.56\n",
      "2015-05-06 POSITION value:-126.560 upnl:-1.550 rpnl:2.000\n",
      "2015-05-07 TICK WIKI/AAPL open: 124.77 close: 125.26\n",
      "2015-05-07 POSITION value:-126.560 upnl:-1.300 rpnl:2.000\n",
      "2015-05-08 TICK WIKI/AAPL open: 126.68 close: 127.62\n",
      "2015-05-08 SELL signal\n",
      "2015-05-08 ORDER SELL WIKI/AAPL 1\n",
      "2015-05-08 POSITION value:-126.560 upnl:1.060 rpnl:2.000\n",
      "2015-05-11 TICK WIKI/AAPL open: 127.39 close: 126.32\n",
      "2015-05-11 FILLED SELL 1 WIKI/AAPL at 127.39\n",
      "2015-05-11 BUY signal\n",
      "2015-05-11 ORDER BUY WIKI/AAPL 1\n",
      "2015-05-11 POSITION value:0.000 upnl:0.000 rpnl:0.830\n",
      "2015-05-12 TICK WIKI/AAPL open: 125.6 close: 125.865\n",
      "2015-05-12 FILLED BUY 1 WIKI/AAPL at 125.6\n",
      "2015-05-12 POSITION value:-125.600 upnl:0.265 rpnl:0.830\n",
      "2015-05-13 TICK WIKI/AAPL open: 126.15 close: 126.01\n",
      "2015-05-13 POSITION value:-125.600 upnl:0.410 rpnl:0.830\n",
      "2015-05-14 TICK WIKI/AAPL open: 127.41 close: 128.95\n",
      "2015-05-14 SELL signal\n",
      "2015-05-14 ORDER SELL WIKI/AAPL 1\n",
      "2015-05-14 POSITION value:-125.600 upnl:3.350 rpnl:0.830\n",
      "2015-05-15 TICK WIKI/AAPL open: 129.07 close: 128.77\n",
      "2015-05-15 FILLED SELL 1 WIKI/AAPL at 129.07\n",
      "2015-05-15 POSITION value:0.000 upnl:0.000 rpnl:3.470\n",
      "2015-05-18 TICK WIKI/AAPL open: 128.38 close: 130.19\n",
      "2015-05-18 SELL signal\n",
      "2015-05-18 ORDER SELL WIKI/AAPL 1\n",
      "2015-05-18 POSITION value:0.000 upnl:0.000 rpnl:3.470\n",
      "2015-05-19 TICK WIKI/AAPL open: 130.69 close: 130.07\n",
      "2015-05-19 FILLED SELL 1 WIKI/AAPL at 130.69\n",
      "2015-05-19 POSITION value:130.690 upnl:0.620 rpnl:3.470\n",
      "2015-05-20 TICK WIKI/AAPL open: 130.0 close: 130.06\n",
      "2015-05-20 POSITION value:130.690 upnl:0.630 rpnl:3.470\n",
      "2015-05-21 TICK WIKI/AAPL open: 130.07 close: 131.39\n",
      "2015-05-21 POSITION value:130.690 upnl:-0.700 rpnl:3.470\n",
      "2015-05-22 TICK WIKI/AAPL open: 131.6 close: 132.54\n",
      "2015-05-22 POSITION value:130.690 upnl:-1.850 rpnl:3.470\n",
      "2015-05-26 TICK WIKI/AAPL open: 132.6 close: 129.62\n",
      "2015-05-26 BUY signal\n",
      "2015-05-26 ORDER BUY WIKI/AAPL 1\n",
      "2015-05-26 POSITION value:130.690 upnl:1.070 rpnl:3.470\n",
      "2015-05-27 TICK WIKI/AAPL open: 130.34 close: 132.045\n",
      "2015-05-27 FILLED BUY 1 WIKI/AAPL at 130.34\n",
      "2015-05-27 SELL signal\n",
      "2015-05-27 ORDER SELL WIKI/AAPL 1\n",
      "2015-05-27 POSITION value:0.000 upnl:0.000 rpnl:0.350\n",
      "2015-05-28 TICK WIKI/AAPL open: 131.86 close: 131.78\n",
      "2015-05-28 FILLED SELL 1 WIKI/AAPL at 131.86\n",
      "2015-05-28 POSITION value:131.860 upnl:0.080 rpnl:0.350\n",
      "2015-05-29 TICK WIKI/AAPL open: 131.23 close: 130.28\n",
      "2015-05-29 BUY signal\n",
      "2015-05-29 ORDER BUY WIKI/AAPL 1\n",
      "2015-05-29 POSITION value:131.860 upnl:1.580 rpnl:0.350\n",
      "2015-06-01 TICK WIKI/AAPL open: 131.2 close: 130.535\n",
      "2015-06-01 FILLED BUY 1 WIKI/AAPL at 131.2\n",
      "2015-06-01 POSITION value:0.000 upnl:0.000 rpnl:0.660\n",
      "2015-06-02 TICK WIKI/AAPL open: 129.86 close: 129.96\n",
      "2015-06-02 BUY signal\n",
      "2015-06-02 ORDER BUY WIKI/AAPL 1\n",
      "2015-06-02 POSITION value:0.000 upnl:0.000 rpnl:0.660\n",
      "2015-06-03 TICK WIKI/AAPL open: 130.66 close: 130.12\n",
      "2015-06-03 FILLED BUY 1 WIKI/AAPL at 130.66\n",
      "2015-06-03 POSITION value:-130.660 upnl:-0.540 rpnl:0.660\n",
      "2015-06-04 TICK WIKI/AAPL open: 129.58 close: 129.36\n",
      "2015-06-04 POSITION value:-130.660 upnl:-1.300 rpnl:0.660\n",
      "2015-06-05 TICK WIKI/AAPL open: 129.5 close: 128.65\n",
      "2015-06-05 POSITION value:-130.660 upnl:-2.010 rpnl:0.660\n",
      "2015-06-08 TICK WIKI/AAPL open: 128.9 close: 127.8\n",
      "2015-06-08 POSITION value:-130.660 upnl:-2.860 rpnl:0.660\n",
      "2015-06-09 TICK WIKI/AAPL open: 126.7 close: 127.42\n",
      "2015-06-09 POSITION value:-130.660 upnl:-3.240 rpnl:0.660\n",
      "2015-06-10 TICK WIKI/AAPL open: 127.92 close: 128.88\n",
      "2015-06-10 SELL signal\n",
      "2015-06-10 ORDER SELL WIKI/AAPL 1\n",
      "2015-06-10 POSITION value:-130.660 upnl:-1.780 rpnl:0.660\n",
      "2015-06-11 TICK WIKI/AAPL open: 129.18 close: 128.59\n",
      "2015-06-11 FILLED SELL 1 WIKI/AAPL at 129.18\n",
      "2015-06-11 POSITION value:0.000 upnl:0.000 rpnl:-1.480\n",
      "2015-06-12 TICK WIKI/AAPL open: 128.185 close: 127.17\n",
      "2015-06-12 BUY signal\n",
      "2015-06-12 ORDER BUY WIKI/AAPL 1\n",
      "2015-06-12 POSITION value:0.000 upnl:0.000 rpnl:-1.480\n",
      "2015-06-15 TICK WIKI/AAPL open: 126.1 close: 126.92\n",
      "2015-06-15 FILLED BUY 1 WIKI/AAPL at 126.1\n",
      "2015-06-15 POSITION value:-126.100 upnl:0.820 rpnl:-1.480\n",
      "2015-06-16 TICK WIKI/AAPL open: 127.03 close: 127.6\n",
      "2015-06-16 SELL signal\n",
      "2015-06-16 ORDER SELL WIKI/AAPL 1\n",
      "2015-06-16 POSITION value:-126.100 upnl:1.500 rpnl:-1.480\n",
      "2015-06-17 TICK WIKI/AAPL open: 127.72 close: 127.3\n",
      "2015-06-17 FILLED SELL 1 WIKI/AAPL at 127.72\n",
      "2015-06-17 POSITION value:0.000 upnl:0.000 rpnl:1.620\n",
      "2015-06-18 TICK WIKI/AAPL open: 127.23 close: 127.88\n",
      "2015-06-18 SELL signal\n",
      "2015-06-18 ORDER SELL WIKI/AAPL 1\n",
      "2015-06-18 POSITION value:0.000 upnl:0.000 rpnl:1.620\n",
      "2015-06-19 TICK WIKI/AAPL open: 127.71 close: 126.6\n",
      "2015-06-19 FILLED SELL 1 WIKI/AAPL at 127.71\n",
      "2015-06-19 BUY signal\n",
      "2015-06-19 ORDER BUY WIKI/AAPL 1\n",
      "2015-06-19 POSITION value:127.710 upnl:1.110 rpnl:1.620\n",
      "2015-06-22 TICK WIKI/AAPL open: 127.49 close: 127.61\n",
      "2015-06-22 FILLED BUY 1 WIKI/AAPL at 127.49\n",
      "2015-06-22 SELL signal\n",
      "2015-06-22 ORDER SELL WIKI/AAPL 1\n",
      "2015-06-22 POSITION value:0.000 upnl:0.000 rpnl:0.220\n",
      "2015-06-23 TICK WIKI/AAPL open: 127.48 close: 127.03\n",
      "2015-06-23 FILLED SELL 1 WIKI/AAPL at 127.48\n",
      "2015-06-23 POSITION value:127.480 upnl:0.450 rpnl:0.220\n",
      "2015-06-24 TICK WIKI/AAPL open: 127.21 close: 128.11\n",
      "2015-06-24 POSITION value:127.480 upnl:-0.630 rpnl:0.220\n",
      "2015-06-25 TICK WIKI/AAPL open: 128.86 close: 127.5\n",
      "2015-06-25 BUY signal\n",
      "2015-06-25 ORDER BUY WIKI/AAPL 1\n",
      "2015-06-25 POSITION value:127.480 upnl:-0.020 rpnl:0.220\n",
      "2015-06-26 TICK WIKI/AAPL open: 127.67 close: 126.75\n",
      "2015-06-26 FILLED BUY 1 WIKI/AAPL at 127.67\n",
      "2015-06-26 BUY signal\n",
      "2015-06-26 ORDER BUY WIKI/AAPL 1\n",
      "2015-06-26 POSITION value:0.000 upnl:0.000 rpnl:-0.190\n",
      "2015-06-29 TICK WIKI/AAPL open: 125.46 close: 124.53\n",
      "2015-06-29 FILLED BUY 1 WIKI/AAPL at 125.46\n",
      "2015-06-29 POSITION value:-125.460 upnl:-0.930 rpnl:-0.190\n",
      "2015-06-30 TICK WIKI/AAPL open: 125.57 close: 125.425\n",
      "2015-06-30 SELL signal\n",
      "2015-06-30 ORDER SELL WIKI/AAPL 1\n",
      "2015-06-30 POSITION value:-125.460 upnl:-0.035 rpnl:-0.190\n",
      "2015-07-01 TICK WIKI/AAPL open: 126.9 close: 126.6\n",
      "2015-07-01 FILLED SELL 1 WIKI/AAPL at 126.9\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2015-07-01 SELL signal\n",
      "2015-07-01 ORDER SELL WIKI/AAPL 1\n",
      "2015-07-01 POSITION value:0.000 upnl:0.000 rpnl:1.440\n",
      "2015-07-02 TICK WIKI/AAPL open: 126.43 close: 126.44\n",
      "2015-07-02 FILLED SELL 1 WIKI/AAPL at 126.43\n",
      "2015-07-02 POSITION value:126.430 upnl:-0.010 rpnl:1.440\n",
      "2015-07-06 TICK WIKI/AAPL open: 124.94 close: 126.0\n",
      "2015-07-06 POSITION value:126.430 upnl:0.430 rpnl:1.440\n",
      "2015-07-07 TICK WIKI/AAPL open: 125.89 close: 125.69\n",
      "2015-07-07 POSITION value:126.430 upnl:0.740 rpnl:1.440\n",
      "2015-07-08 TICK WIKI/AAPL open: 124.48 close: 122.57\n",
      "2015-07-08 BUY signal\n",
      "2015-07-08 ORDER BUY WIKI/AAPL 1\n",
      "2015-07-08 POSITION value:126.430 upnl:3.860 rpnl:1.440\n",
      "2015-07-09 TICK WIKI/AAPL open: 123.85 close: 120.07\n",
      "2015-07-09 FILLED BUY 1 WIKI/AAPL at 123.85\n",
      "2015-07-09 BUY signal\n",
      "2015-07-09 ORDER BUY WIKI/AAPL 1\n",
      "2015-07-09 POSITION value:0.000 upnl:0.000 rpnl:2.580\n",
      "2015-07-10 TICK WIKI/AAPL open: 121.94 close: 123.28\n",
      "2015-07-10 FILLED BUY 1 WIKI/AAPL at 121.94\n",
      "2015-07-10 SELL signal\n",
      "2015-07-10 ORDER SELL WIKI/AAPL 1\n",
      "2015-07-10 POSITION value:-121.940 upnl:1.340 rpnl:2.580\n",
      "2015-07-13 TICK WIKI/AAPL open: 125.03 close: 125.66\n",
      "2015-07-13 FILLED SELL 1 WIKI/AAPL at 125.03\n",
      "2015-07-13 SELL signal\n",
      "2015-07-13 ORDER SELL WIKI/AAPL 1\n",
      "2015-07-13 POSITION value:0.000 upnl:0.000 rpnl:3.090\n",
      "2015-07-14 TICK WIKI/AAPL open: 126.04 close: 125.61\n",
      "2015-07-14 FILLED SELL 1 WIKI/AAPL at 126.04\n",
      "2015-07-14 POSITION value:126.040 upnl:0.430 rpnl:3.090\n",
      "2015-07-15 TICK WIKI/AAPL open: 125.72 close: 126.82\n",
      "2015-07-15 POSITION value:126.040 upnl:-0.780 rpnl:3.090\n",
      "2015-07-16 TICK WIKI/AAPL open: 127.74 close: 128.51\n",
      "2015-07-16 POSITION value:126.040 upnl:-2.470 rpnl:3.090\n",
      "2015-07-17 TICK WIKI/AAPL open: 129.08 close: 129.62\n",
      "2015-07-17 POSITION value:126.040 upnl:-3.580 rpnl:3.090\n",
      "2015-07-20 TICK WIKI/AAPL open: 130.97 close: 132.07\n",
      "2015-07-20 POSITION value:126.040 upnl:-6.030 rpnl:3.090\n",
      "2015-07-21 TICK WIKI/AAPL open: 132.85 close: 130.75\n",
      "2015-07-21 BUY signal\n",
      "2015-07-21 ORDER BUY WIKI/AAPL 1\n",
      "2015-07-21 POSITION value:126.040 upnl:-4.710 rpnl:3.090\n",
      "2015-07-22 TICK WIKI/AAPL open: 121.99 close: 125.22\n",
      "2015-07-22 FILLED BUY 1 WIKI/AAPL at 121.99\n",
      "2015-07-22 BUY signal\n",
      "2015-07-22 ORDER BUY WIKI/AAPL 1\n",
      "2015-07-22 POSITION value:0.000 upnl:0.000 rpnl:4.050\n",
      "2015-07-23 TICK WIKI/AAPL open: 126.2 close: 125.16\n",
      "2015-07-23 FILLED BUY 1 WIKI/AAPL at 126.2\n",
      "2015-07-23 POSITION value:-126.200 upnl:-1.040 rpnl:4.050\n",
      "2015-07-24 TICK WIKI/AAPL open: 125.32 close: 124.5\n",
      "2015-07-24 POSITION value:-126.200 upnl:-1.700 rpnl:4.050\n",
      "2015-07-27 TICK WIKI/AAPL open: 123.09 close: 122.77\n",
      "2015-07-27 POSITION value:-126.200 upnl:-3.430 rpnl:4.050\n",
      "2015-07-28 TICK WIKI/AAPL open: 123.38 close: 123.38\n",
      "2015-07-28 POSITION value:-126.200 upnl:-2.820 rpnl:4.050\n",
      "2015-07-29 TICK WIKI/AAPL open: 123.15 close: 122.99\n",
      "2015-07-29 POSITION value:-126.200 upnl:-3.210 rpnl:4.050\n",
      "2015-07-30 TICK WIKI/AAPL open: 122.32 close: 122.37\n",
      "2015-07-30 POSITION value:-126.200 upnl:-3.830 rpnl:4.050\n",
      "2015-07-31 TICK WIKI/AAPL open: 122.6 close: 121.3\n",
      "2015-07-31 POSITION value:-126.200 upnl:-4.900 rpnl:4.050\n",
      "2015-08-03 TICK WIKI/AAPL open: 121.5 close: 118.44\n",
      "2015-08-03 POSITION value:-126.200 upnl:-7.760 rpnl:4.050\n",
      "2015-08-04 TICK WIKI/AAPL open: 117.42 close: 114.64\n",
      "2015-08-04 POSITION value:-126.200 upnl:-11.560 rpnl:4.050\n",
      "2015-08-05 TICK WIKI/AAPL open: 112.95 close: 115.4\n",
      "2015-08-05 POSITION value:-126.200 upnl:-10.800 rpnl:4.050\n",
      "2015-08-06 TICK WIKI/AAPL open: 115.97 close: 115.13\n",
      "2015-08-06 POSITION value:-126.200 upnl:-11.070 rpnl:4.050\n",
      "2015-08-07 TICK WIKI/AAPL open: 114.58 close: 115.52\n",
      "2015-08-07 SELL signal\n",
      "2015-08-07 ORDER SELL WIKI/AAPL 1\n",
      "2015-08-07 POSITION value:-126.200 upnl:-10.680 rpnl:4.050\n",
      "2015-08-10 TICK WIKI/AAPL open: 116.53 close: 119.72\n",
      "2015-08-10 FILLED SELL 1 WIKI/AAPL at 116.53\n",
      "2015-08-10 SELL signal\n",
      "2015-08-10 ORDER SELL WIKI/AAPL 1\n",
      "2015-08-10 POSITION value:0.000 upnl:0.000 rpnl:-9.670\n",
      "2015-08-11 TICK WIKI/AAPL open: 117.81 close: 113.49\n",
      "2015-08-11 FILLED SELL 1 WIKI/AAPL at 117.81\n",
      "2015-08-11 BUY signal\n",
      "2015-08-11 ORDER BUY WIKI/AAPL 1\n",
      "2015-08-11 POSITION value:117.810 upnl:4.320 rpnl:-9.670\n",
      "2015-08-12 TICK WIKI/AAPL open: 112.53 close: 115.24\n",
      "2015-08-12 FILLED BUY 1 WIKI/AAPL at 112.53\n",
      "2015-08-12 SELL signal\n",
      "2015-08-12 ORDER SELL WIKI/AAPL 1\n",
      "2015-08-12 POSITION value:0.000 upnl:0.000 rpnl:5.280\n",
      "2015-08-13 TICK WIKI/AAPL open: 116.04 close: 115.15\n",
      "2015-08-13 FILLED SELL 1 WIKI/AAPL at 116.04\n",
      "2015-08-13 POSITION value:116.040 upnl:0.890 rpnl:5.280\n",
      "2015-08-14 TICK WIKI/AAPL open: 114.32 close: 115.96\n",
      "2015-08-14 POSITION value:116.040 upnl:0.080 rpnl:5.280\n",
      "2015-08-17 TICK WIKI/AAPL open: 116.04 close: 117.16\n",
      "2015-08-17 POSITION value:116.040 upnl:-1.120 rpnl:5.280\n",
      "2015-08-18 TICK WIKI/AAPL open: 116.43 close: 116.5\n",
      "2015-08-18 POSITION value:116.040 upnl:-0.460 rpnl:5.280\n",
      "2015-08-19 TICK WIKI/AAPL open: 116.1 close: 115.01\n",
      "2015-08-19 POSITION value:116.040 upnl:1.030 rpnl:5.280\n",
      "2015-08-20 TICK WIKI/AAPL open: 114.08 close: 112.65\n",
      "2015-08-20 BUY signal\n",
      "2015-08-20 ORDER BUY WIKI/AAPL 1\n",
      "2015-08-20 POSITION value:116.040 upnl:3.390 rpnl:5.280\n",
      "2015-08-21 TICK WIKI/AAPL open: 110.43 close: 105.76\n",
      "2015-08-21 FILLED BUY 1 WIKI/AAPL at 110.43\n",
      "2015-08-21 BUY signal\n",
      "2015-08-21 ORDER BUY WIKI/AAPL 1\n",
      "2015-08-21 POSITION value:0.000 upnl:0.000 rpnl:5.610\n",
      "2015-08-24 TICK WIKI/AAPL open: 94.87 close: 103.12\n",
      "2015-08-24 FILLED BUY 1 WIKI/AAPL at 94.87\n",
      "2015-08-24 POSITION value:-94.870 upnl:8.250 rpnl:5.610\n",
      "2015-08-25 TICK WIKI/AAPL open: 111.11 close: 103.74\n",
      "2015-08-25 SELL signal\n",
      "2015-08-25 ORDER SELL WIKI/AAPL 1\n",
      "2015-08-25 POSITION value:-94.870 upnl:8.870 rpnl:5.610\n",
      "2015-08-26 TICK WIKI/AAPL open: 107.085 close: 109.69\n",
      "2015-08-26 FILLED SELL 1 WIKI/AAPL at 107.085\n",
      "2015-08-26 SELL signal\n",
      "2015-08-26 ORDER SELL WIKI/AAPL 1\n",
      "2015-08-26 POSITION value:0.000 upnl:0.000 rpnl:12.215\n",
      "2015-08-27 TICK WIKI/AAPL open: 112.25 close: 112.92\n",
      "2015-08-27 FILLED SELL 1 WIKI/AAPL at 112.25\n",
      "2015-08-27 POSITION value:112.250 upnl:-0.670 rpnl:12.215\n",
      "2015-08-28 TICK WIKI/AAPL open: 112.17 close: 113.29\n",
      "2015-08-28 POSITION value:112.250 upnl:-1.040 rpnl:12.215\n",
      "2015-08-31 TICK WIKI/AAPL open: 112.13 close: 112.76\n",
      "2015-08-31 POSITION value:112.250 upnl:-0.510 rpnl:12.215\n",
      "2015-09-01 TICK WIKI/AAPL open: 110.18 close: 107.72\n",
      "2015-09-01 BUY signal\n",
      "2015-09-01 ORDER BUY WIKI/AAPL 1\n",
      "2015-09-01 POSITION value:112.250 upnl:4.530 rpnl:12.215\n",
      "2015-09-02 TICK WIKI/AAPL open: 110.0 close: 112.34\n",
      "2015-09-02 FILLED BUY 1 WIKI/AAPL at 110.0\n",
      "2015-09-02 SELL signal\n",
      "2015-09-02 ORDER SELL WIKI/AAPL 1\n",
      "2015-09-02 POSITION value:0.000 upnl:0.000 rpnl:2.250\n",
      "2015-09-03 TICK WIKI/AAPL open: 112.49 close: 110.37\n",
      "2015-09-03 FILLED SELL 1 WIKI/AAPL at 112.49\n",
      "2015-09-03 POSITION value:112.490 upnl:2.120 rpnl:2.250\n",
      "2015-09-04 TICK WIKI/AAPL open: 108.97 close: 109.27\n",
      "2015-09-04 POSITION value:112.490 upnl:3.220 rpnl:2.250\n",
      "2015-09-08 TICK WIKI/AAPL open: 111.65 close: 112.31\n",
      "2015-09-08 POSITION value:112.490 upnl:0.180 rpnl:2.250\n",
      "2015-09-09 TICK WIKI/AAPL open: 113.76 close: 110.15\n",
      "2015-09-09 BUY signal\n",
      "2015-09-09 ORDER BUY WIKI/AAPL 1\n",
      "2015-09-09 POSITION value:112.490 upnl:2.340 rpnl:2.250\n",
      "2015-09-10 TICK WIKI/AAPL open: 110.27 close: 112.57\n",
      "2015-09-10 FILLED BUY 1 WIKI/AAPL at 110.27\n",
      "2015-09-10 SELL signal\n",
      "2015-09-10 ORDER SELL WIKI/AAPL 1\n",
      "2015-09-10 POSITION value:0.000 upnl:0.000 rpnl:2.220\n",
      "2015-09-11 TICK WIKI/AAPL open: 111.79 close: 114.21\n",
      "2015-09-11 FILLED SELL 1 WIKI/AAPL at 111.79\n",
      "2015-09-11 POSITION value:111.790 upnl:-2.420 rpnl:2.220\n",
      "2015-09-14 TICK WIKI/AAPL open: 116.58 close: 115.31\n",
      "2015-09-14 POSITION value:111.790 upnl:-3.520 rpnl:2.220\n",
      "2015-09-15 TICK WIKI/AAPL open: 115.93 close: 116.28\n",
      "2015-09-15 POSITION value:111.790 upnl:-4.490 rpnl:2.220\n",
      "2015-09-16 TICK WIKI/AAPL open: 116.25 close: 116.41\n",
      "2015-09-16 POSITION value:111.790 upnl:-4.620 rpnl:2.220\n",
      "2015-09-17 TICK WIKI/AAPL open: 115.66 close: 113.92\n",
      "2015-09-17 BUY signal\n",
      "2015-09-17 ORDER BUY WIKI/AAPL 1\n",
      "2015-09-17 POSITION value:111.790 upnl:-2.130 rpnl:2.220\n",
      "2015-09-18 TICK WIKI/AAPL open: 112.21 close: 113.45\n",
      "2015-09-18 FILLED BUY 1 WIKI/AAPL at 112.21\n",
      "2015-09-18 POSITION value:0.000 upnl:0.000 rpnl:-0.420\n",
      "2015-09-21 TICK WIKI/AAPL open: 113.67 close: 115.21\n",
      "2015-09-21 POSITION value:0.000 upnl:0.000 rpnl:-0.420\n",
      "2015-09-22 TICK WIKI/AAPL open: 113.38 close: 113.4\n",
      "2015-09-22 BUY signal\n",
      "2015-09-22 ORDER BUY WIKI/AAPL 1\n",
      "2015-09-22 POSITION value:0.000 upnl:0.000 rpnl:-0.420\n",
      "2015-09-23 TICK WIKI/AAPL open: 113.63 close: 114.32\n",
      "2015-09-23 FILLED BUY 1 WIKI/AAPL at 113.63\n",
      "2015-09-23 POSITION value:-113.630 upnl:0.690 rpnl:-0.420\n",
      "2015-09-24 TICK WIKI/AAPL open: 113.25 close: 115.0\n",
      "2015-09-24 POSITION value:-113.630 upnl:1.370 rpnl:-0.420\n",
      "2015-09-25 TICK WIKI/AAPL open: 116.44 close: 114.71\n",
      "2015-09-25 POSITION value:-113.630 upnl:1.080 rpnl:-0.420\n",
      "2015-09-28 TICK WIKI/AAPL open: 113.85 close: 112.44\n",
      "2015-09-28 POSITION value:-113.630 upnl:-1.190 rpnl:-0.420\n",
      "2015-09-29 TICK WIKI/AAPL open: 112.83 close: 109.06\n",
      "2015-09-29 POSITION value:-113.630 upnl:-4.570 rpnl:-0.420\n",
      "2015-09-30 TICK WIKI/AAPL open: 110.17 close: 109.95\n",
      "2015-09-30 SELL signal\n",
      "2015-09-30 ORDER SELL WIKI/AAPL 1\n",
      "2015-09-30 POSITION value:-113.630 upnl:-3.680 rpnl:-0.420\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2015-10-01 TICK WIKI/AAPL open: 109.07 close: 109.58\n",
      "2015-10-01 FILLED SELL 1 WIKI/AAPL at 109.07\n",
      "2015-10-01 POSITION value:0.000 upnl:0.000 rpnl:-4.560\n",
      "2015-10-02 TICK WIKI/AAPL open: 108.01 close: 110.38\n",
      "2015-10-02 POSITION value:0.000 upnl:0.000 rpnl:-4.560\n",
      "2015-10-05 TICK WIKI/AAPL open: 109.88 close: 110.78\n",
      "2015-10-05 POSITION value:0.000 upnl:0.000 rpnl:-4.560\n",
      "2015-10-06 TICK WIKI/AAPL open: 110.63 close: 111.31\n",
      "2015-10-06 POSITION value:0.000 upnl:0.000 rpnl:-4.560\n",
      "2015-10-07 TICK WIKI/AAPL open: 111.74 close: 110.78\n",
      "2015-10-07 POSITION value:0.000 upnl:0.000 rpnl:-4.560\n",
      "2015-10-08 TICK WIKI/AAPL open: 110.19 close: 109.5\n",
      "2015-10-08 BUY signal\n",
      "2015-10-08 ORDER BUY WIKI/AAPL 1\n",
      "2015-10-08 POSITION value:0.000 upnl:0.000 rpnl:-4.560\n",
      "2015-10-09 TICK WIKI/AAPL open: 110.0 close: 112.12\n",
      "2015-10-09 FILLED BUY 1 WIKI/AAPL at 110.0\n",
      "2015-10-09 SELL signal\n",
      "2015-10-09 ORDER SELL WIKI/AAPL 1\n",
      "2015-10-09 POSITION value:-110.000 upnl:2.120 rpnl:-4.560\n",
      "2015-10-12 TICK WIKI/AAPL open: 112.73 close: 111.6\n",
      "2015-10-12 FILLED SELL 1 WIKI/AAPL at 112.73\n",
      "2015-10-12 POSITION value:0.000 upnl:0.000 rpnl:2.730\n",
      "2015-10-13 TICK WIKI/AAPL open: 110.82 close: 111.79\n",
      "2015-10-13 POSITION value:0.000 upnl:0.000 rpnl:2.730\n",
      "2015-10-14 TICK WIKI/AAPL open: 111.29 close: 110.21\n",
      "2015-10-14 BUY signal\n",
      "2015-10-14 ORDER BUY WIKI/AAPL 1\n",
      "2015-10-14 POSITION value:0.000 upnl:0.000 rpnl:2.730\n",
      "2015-10-15 TICK WIKI/AAPL open: 110.93 close: 111.86\n",
      "2015-10-15 FILLED BUY 1 WIKI/AAPL at 110.93\n",
      "2015-10-15 SELL signal\n",
      "2015-10-15 ORDER SELL WIKI/AAPL 1\n",
      "2015-10-15 POSITION value:-110.930 upnl:0.930 rpnl:2.730\n",
      "2015-10-16 TICK WIKI/AAPL open: 111.78 close: 111.04\n",
      "2015-10-16 FILLED SELL 1 WIKI/AAPL at 111.78\n",
      "2015-10-16 POSITION value:0.000 upnl:0.000 rpnl:0.850\n",
      "2015-10-19 TICK WIKI/AAPL open: 110.8 close: 111.73\n",
      "2015-10-19 SELL signal\n",
      "2015-10-19 ORDER SELL WIKI/AAPL 1\n",
      "2015-10-19 POSITION value:0.000 upnl:0.000 rpnl:0.850\n",
      "2015-10-20 TICK WIKI/AAPL open: 111.34 close: 113.77\n",
      "2015-10-20 FILLED SELL 1 WIKI/AAPL at 111.34\n",
      "2015-10-20 POSITION value:111.340 upnl:-2.430 rpnl:0.850\n",
      "2015-10-21 TICK WIKI/AAPL open: 114.0 close: 113.76\n",
      "2015-10-21 POSITION value:111.340 upnl:-2.420 rpnl:0.850\n",
      "2015-10-22 TICK WIKI/AAPL open: 114.33 close: 115.5\n",
      "2015-10-22 POSITION value:111.340 upnl:-4.160 rpnl:0.850\n",
      "2015-10-23 TICK WIKI/AAPL open: 116.7 close: 119.08\n",
      "2015-10-23 POSITION value:111.340 upnl:-7.740 rpnl:0.850\n",
      "2015-10-26 TICK WIKI/AAPL open: 118.08 close: 115.28\n",
      "2015-10-26 BUY signal\n",
      "2015-10-26 ORDER BUY WIKI/AAPL 1\n",
      "2015-10-26 POSITION value:111.340 upnl:-3.940 rpnl:0.850\n",
      "2015-10-27 TICK WIKI/AAPL open: 115.4 close: 114.55\n",
      "2015-10-27 FILLED BUY 1 WIKI/AAPL at 115.4\n",
      "2015-10-27 BUY signal\n",
      "2015-10-27 ORDER BUY WIKI/AAPL 1\n",
      "2015-10-27 POSITION value:0.000 upnl:0.000 rpnl:-4.060\n",
      "2015-10-28 TICK WIKI/AAPL open: 116.93 close: 119.27\n",
      "2015-10-28 FILLED BUY 1 WIKI/AAPL at 116.93\n",
      "2015-10-28 SELL signal\n",
      "2015-10-28 ORDER SELL WIKI/AAPL 1\n",
      "2015-10-28 POSITION value:-116.930 upnl:2.340 rpnl:-4.060\n",
      "2015-10-29 TICK WIKI/AAPL open: 118.7 close: 120.53\n",
      "2015-10-29 FILLED SELL 1 WIKI/AAPL at 118.7\n",
      "2015-10-29 POSITION value:0.000 upnl:0.000 rpnl:1.770\n",
      "2015-10-30 TICK WIKI/AAPL open: 120.99 close: 119.5\n",
      "2015-10-30 BUY signal\n",
      "2015-10-30 ORDER BUY WIKI/AAPL 1\n",
      "2015-10-30 POSITION value:0.000 upnl:0.000 rpnl:1.770\n",
      "2015-11-02 TICK WIKI/AAPL open: 119.87 close: 121.18\n",
      "2015-11-02 FILLED BUY 1 WIKI/AAPL at 119.87\n",
      "2015-11-02 SELL signal\n",
      "2015-11-02 ORDER SELL WIKI/AAPL 1\n",
      "2015-11-02 POSITION value:-119.870 upnl:1.310 rpnl:1.770\n",
      "2015-11-03 TICK WIKI/AAPL open: 120.79 close: 122.57\n",
      "2015-11-03 FILLED SELL 1 WIKI/AAPL at 120.79\n",
      "2015-11-03 POSITION value:0.000 upnl:0.000 rpnl:0.920\n",
      "2015-11-04 TICK WIKI/AAPL open: 123.13 close: 122.0\n",
      "2015-11-04 BUY signal\n",
      "2015-11-04 ORDER BUY WIKI/AAPL 1\n",
      "2015-11-04 POSITION value:0.000 upnl:0.000 rpnl:0.920\n",
      "2015-11-05 TICK WIKI/AAPL open: 121.85 close: 120.92\n",
      "2015-11-05 FILLED BUY 1 WIKI/AAPL at 121.85\n",
      "2015-11-05 POSITION value:-121.850 upnl:-0.930 rpnl:0.920\n",
      "2015-11-06 TICK WIKI/AAPL open: 121.11 close: 121.06\n",
      "2015-11-06 POSITION value:-121.850 upnl:-0.790 rpnl:0.920\n",
      "2015-11-09 TICK WIKI/AAPL open: 120.96 close: 120.57\n",
      "2015-11-09 POSITION value:-121.850 upnl:-1.280 rpnl:0.920\n",
      "2015-11-10 TICK WIKI/AAPL open: 116.9 close: 116.77\n",
      "2015-11-10 POSITION value:-121.850 upnl:-5.080 rpnl:0.920\n",
      "2015-11-11 TICK WIKI/AAPL open: 116.37 close: 116.11\n",
      "2015-11-11 POSITION value:-121.850 upnl:-5.740 rpnl:0.920\n",
      "2015-11-12 TICK WIKI/AAPL open: 116.26 close: 115.72\n",
      "2015-11-12 POSITION value:-121.850 upnl:-6.130 rpnl:0.920\n",
      "2015-11-13 TICK WIKI/AAPL open: 115.2 close: 112.34\n",
      "2015-11-13 POSITION value:-121.850 upnl:-9.510 rpnl:0.920\n",
      "2015-11-16 TICK WIKI/AAPL open: 111.38 close: 114.175\n",
      "2015-11-16 SELL signal\n",
      "2015-11-16 ORDER SELL WIKI/AAPL 1\n",
      "2015-11-16 POSITION value:-121.850 upnl:-7.675 rpnl:0.920\n",
      "2015-11-17 TICK WIKI/AAPL open: 114.92 close: 113.69\n",
      "2015-11-17 FILLED SELL 1 WIKI/AAPL at 114.92\n",
      "2015-11-17 POSITION value:0.000 upnl:0.000 rpnl:-6.930\n",
      "2015-11-18 TICK WIKI/AAPL open: 115.76 close: 117.29\n",
      "2015-11-18 SELL signal\n",
      "2015-11-18 ORDER SELL WIKI/AAPL 1\n",
      "2015-11-18 POSITION value:0.000 upnl:0.000 rpnl:-6.930\n",
      "2015-11-19 TICK WIKI/AAPL open: 117.64 close: 118.78\n",
      "2015-11-19 FILLED SELL 1 WIKI/AAPL at 117.64\n",
      "2015-11-19 POSITION value:117.640 upnl:-1.140 rpnl:-6.930\n",
      "2015-11-20 TICK WIKI/AAPL open: 119.2 close: 119.3\n",
      "2015-11-20 POSITION value:117.640 upnl:-1.660 rpnl:-6.930\n",
      "2015-11-23 TICK WIKI/AAPL open: 119.27 close: 117.75\n",
      "2015-11-23 BUY signal\n",
      "2015-11-23 ORDER BUY WIKI/AAPL 1\n",
      "2015-11-23 POSITION value:117.640 upnl:-0.110 rpnl:-6.930\n",
      "2015-11-24 TICK WIKI/AAPL open: 117.33 close: 118.88\n",
      "2015-11-24 FILLED BUY 1 WIKI/AAPL at 117.33\n",
      "2015-11-24 SELL signal\n",
      "2015-11-24 ORDER SELL WIKI/AAPL 1\n",
      "2015-11-24 POSITION value:0.000 upnl:0.000 rpnl:0.310\n",
      "2015-11-25 TICK WIKI/AAPL open: 119.21 close: 118.03\n",
      "2015-11-25 FILLED SELL 1 WIKI/AAPL at 119.21\n",
      "2015-11-25 POSITION value:119.210 upnl:1.180 rpnl:0.310\n",
      "2015-11-27 TICK WIKI/AAPL open: 118.29 close: 117.81\n",
      "2015-11-27 POSITION value:119.210 upnl:1.400 rpnl:0.310\n",
      "2015-11-30 TICK WIKI/AAPL open: 117.99 close: 118.3\n",
      "2015-11-30 POSITION value:119.210 upnl:0.910 rpnl:0.310\n",
      "2015-12-01 TICK WIKI/AAPL open: 118.75 close: 117.34\n",
      "2015-12-01 POSITION value:119.210 upnl:1.870 rpnl:0.310\n",
      "2015-12-02 TICK WIKI/AAPL open: 117.05 close: 116.28\n",
      "2015-12-02 POSITION value:119.210 upnl:2.930 rpnl:0.310\n",
      "2015-12-03 TICK WIKI/AAPL open: 116.55 close: 115.2\n",
      "2015-12-03 POSITION value:119.210 upnl:4.010 rpnl:0.310\n",
      "2015-12-04 TICK WIKI/AAPL open: 115.29 close: 119.03\n",
      "2015-12-04 POSITION value:119.210 upnl:0.180 rpnl:0.310\n",
      "2015-12-07 TICK WIKI/AAPL open: 118.98 close: 118.28\n",
      "2015-12-07 POSITION value:119.210 upnl:0.930 rpnl:0.310\n",
      "2015-12-08 TICK WIKI/AAPL open: 117.52 close: 118.23\n",
      "2015-12-08 POSITION value:119.210 upnl:0.980 rpnl:0.310\n",
      "2015-12-09 TICK WIKI/AAPL open: 117.64 close: 115.62\n",
      "2015-12-09 BUY signal\n",
      "2015-12-09 ORDER BUY WIKI/AAPL 1\n",
      "2015-12-09 POSITION value:119.210 upnl:3.590 rpnl:0.310\n",
      "2015-12-10 TICK WIKI/AAPL open: 116.04 close: 116.17\n",
      "2015-12-10 FILLED BUY 1 WIKI/AAPL at 116.04\n",
      "2015-12-10 POSITION value:0.000 upnl:0.000 rpnl:3.170\n",
      "2015-12-11 TICK WIKI/AAPL open: 115.19 close: 113.18\n",
      "2015-12-11 BUY signal\n",
      "2015-12-11 ORDER BUY WIKI/AAPL 1\n",
      "2015-12-11 POSITION value:0.000 upnl:0.000 rpnl:3.170\n",
      "2015-12-14 TICK WIKI/AAPL open: 112.18 close: 112.48\n",
      "2015-12-14 FILLED BUY 1 WIKI/AAPL at 112.18\n",
      "2015-12-14 POSITION value:-112.180 upnl:0.300 rpnl:3.170\n",
      "2015-12-15 TICK WIKI/AAPL open: 111.94 close: 110.49\n",
      "2015-12-15 POSITION value:-112.180 upnl:-1.690 rpnl:3.170\n",
      "2015-12-16 TICK WIKI/AAPL open: 111.07 close: 111.34\n",
      "2015-12-16 SELL signal\n",
      "2015-12-16 ORDER SELL WIKI/AAPL 1\n",
      "2015-12-16 POSITION value:-112.180 upnl:-0.840 rpnl:3.170\n",
      "2015-12-17 TICK WIKI/AAPL open: 112.02 close: 108.98\n",
      "2015-12-17 FILLED SELL 1 WIKI/AAPL at 112.02\n",
      "2015-12-17 BUY signal\n",
      "2015-12-17 ORDER BUY WIKI/AAPL 1\n",
      "2015-12-17 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-12-18 TICK WIKI/AAPL open: 108.91 close: 106.03\n",
      "2015-12-18 FILLED BUY 1 WIKI/AAPL at 108.91\n",
      "2015-12-18 POSITION value:-108.910 upnl:-2.880 rpnl:-0.160\n",
      "2015-12-21 TICK WIKI/AAPL open: 107.28 close: 107.33\n",
      "2015-12-21 SELL signal\n",
      "2015-12-21 ORDER SELL WIKI/AAPL 1\n",
      "2015-12-21 POSITION value:-108.910 upnl:-1.580 rpnl:-0.160\n",
      "2015-12-22 TICK WIKI/AAPL open: 107.4 close: 107.23\n",
      "2015-12-22 FILLED SELL 1 WIKI/AAPL at 107.4\n",
      "2015-12-22 POSITION value:0.000 upnl:0.000 rpnl:-1.510\n",
      "2015-12-23 TICK WIKI/AAPL open: 107.27 close: 108.61\n",
      "2015-12-23 SELL signal\n",
      "2015-12-23 ORDER SELL WIKI/AAPL 1\n",
      "2015-12-23 POSITION value:0.000 upnl:0.000 rpnl:-1.510\n",
      "2015-12-24 TICK WIKI/AAPL open: 109.0 close: 108.03\n",
      "2015-12-24 FILLED SELL 1 WIKI/AAPL at 109.0\n",
      "2015-12-24 POSITION value:109.000 upnl:0.970 rpnl:-1.510\n",
      "2015-12-28 TICK WIKI/AAPL open: 107.59 close: 106.82\n",
      "2015-12-28 POSITION value:109.000 upnl:2.180 rpnl:-1.510\n",
      "2015-12-29 TICK WIKI/AAPL open: 106.96 close: 108.74\n",
      "2015-12-29 POSITION value:109.000 upnl:0.260 rpnl:-1.510\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2015-12-30 TICK WIKI/AAPL open: 108.58 close: 107.32\n",
      "2015-12-30 BUY signal\n",
      "2015-12-30 ORDER BUY WIKI/AAPL 1\n",
      "2015-12-30 POSITION value:109.000 upnl:1.680 rpnl:-1.510\n",
      "2015-12-31 TICK WIKI/AAPL open: 107.01 close: 105.26\n",
      "2015-12-31 FILLED BUY 1 WIKI/AAPL at 107.01\n",
      "2015-12-31 BUY signal\n",
      "2015-12-31 ORDER BUY WIKI/AAPL 1\n",
      "2015-12-31 POSITION value:0.000 upnl:0.000 rpnl:1.990\n",
      "2016-01-04 TICK WIKI/AAPL open: 102.61 close: 105.35\n",
      "2016-01-04 FILLED BUY 1 WIKI/AAPL at 102.61\n",
      "2016-01-04 SELL signal\n",
      "2016-01-04 ORDER SELL WIKI/AAPL 1\n",
      "2016-01-04 POSITION value:-102.610 upnl:2.740 rpnl:1.990\n",
      "2016-01-05 TICK WIKI/AAPL open: 105.75 close: 102.71\n",
      "2016-01-05 FILLED SELL 1 WIKI/AAPL at 105.75\n",
      "2016-01-05 BUY signal\n",
      "2016-01-05 ORDER BUY WIKI/AAPL 1\n",
      "2016-01-05 POSITION value:0.000 upnl:0.000 rpnl:3.140\n",
      "2016-01-06 TICK WIKI/AAPL open: 100.56 close: 100.7\n",
      "2016-01-06 FILLED BUY 1 WIKI/AAPL at 100.56\n",
      "2016-01-06 POSITION value:-100.560 upnl:0.140 rpnl:3.140\n",
      "2016-01-07 TICK WIKI/AAPL open: 98.68 close: 96.45\n",
      "2016-01-07 POSITION value:-100.560 upnl:-4.110 rpnl:3.140\n",
      "2016-01-08 TICK WIKI/AAPL open: 98.55 close: 96.96\n",
      "2016-01-08 SELL signal\n",
      "2016-01-08 ORDER SELL WIKI/AAPL 1\n",
      "2016-01-08 POSITION value:-100.560 upnl:-3.600 rpnl:3.140\n",
      "2016-01-11 TICK WIKI/AAPL open: 98.97 close: 98.53\n",
      "2016-01-11 FILLED SELL 1 WIKI/AAPL at 98.97\n",
      "2016-01-11 SELL signal\n",
      "2016-01-11 ORDER SELL WIKI/AAPL 1\n",
      "2016-01-11 POSITION value:0.000 upnl:0.000 rpnl:-1.590\n",
      "2016-01-12 TICK WIKI/AAPL open: 100.55 close: 99.96\n",
      "2016-01-12 FILLED SELL 1 WIKI/AAPL at 100.55\n",
      "2016-01-12 POSITION value:100.550 upnl:0.590 rpnl:-1.590\n",
      "2016-01-13 TICK WIKI/AAPL open: 100.32 close: 97.39\n",
      "2016-01-13 BUY signal\n",
      "2016-01-13 ORDER BUY WIKI/AAPL 1\n",
      "2016-01-13 POSITION value:100.550 upnl:3.160 rpnl:-1.590\n",
      "2016-01-14 TICK WIKI/AAPL open: 97.96 close: 99.52\n",
      "2016-01-14 FILLED BUY 1 WIKI/AAPL at 97.96\n",
      "2016-01-14 SELL signal\n",
      "2016-01-14 ORDER SELL WIKI/AAPL 1\n",
      "2016-01-14 POSITION value:0.000 upnl:0.000 rpnl:2.590\n",
      "2016-01-15 TICK WIKI/AAPL open: 96.2 close: 97.13\n",
      "2016-01-15 FILLED SELL 1 WIKI/AAPL at 96.2\n",
      "2016-01-15 BUY signal\n",
      "2016-01-15 ORDER BUY WIKI/AAPL 1\n",
      "2016-01-15 POSITION value:96.200 upnl:-0.930 rpnl:2.590\n",
      "2016-01-19 TICK WIKI/AAPL open: 98.41 close: 96.66\n",
      "2016-01-19 FILLED BUY 1 WIKI/AAPL at 98.41\n",
      "2016-01-19 POSITION value:0.000 upnl:0.000 rpnl:-2.210\n",
      "2016-01-20 TICK WIKI/AAPL open: 95.1 close: 96.79\n",
      "2016-01-20 POSITION value:0.000 upnl:0.000 rpnl:-2.210\n",
      "2016-01-21 TICK WIKI/AAPL open: 97.06 close: 96.3\n",
      "2016-01-21 POSITION value:0.000 upnl:0.000 rpnl:-2.210\n",
      "2016-01-22 TICK WIKI/AAPL open: 98.63 close: 101.42\n",
      "2016-01-22 SELL signal\n",
      "2016-01-22 ORDER SELL WIKI/AAPL 1\n",
      "2016-01-22 POSITION value:0.000 upnl:0.000 rpnl:-2.210\n",
      "2016-01-25 TICK WIKI/AAPL open: 101.52 close: 99.44\n",
      "2016-01-25 FILLED SELL 1 WIKI/AAPL at 101.52\n",
      "2016-01-25 BUY signal\n",
      "2016-01-25 ORDER BUY WIKI/AAPL 1\n",
      "2016-01-25 POSITION value:101.520 upnl:2.080 rpnl:-2.210\n",
      "2016-01-26 TICK WIKI/AAPL open: 99.93 close: 99.99\n",
      "2016-01-26 FILLED BUY 1 WIKI/AAPL at 99.93\n",
      "2016-01-26 POSITION value:0.000 upnl:0.000 rpnl:1.590\n",
      "2016-01-27 TICK WIKI/AAPL open: 96.04 close: 93.42\n",
      "2016-01-27 BUY signal\n",
      "2016-01-27 ORDER BUY WIKI/AAPL 1\n",
      "2016-01-27 POSITION value:0.000 upnl:0.000 rpnl:1.590\n",
      "2016-01-28 TICK WIKI/AAPL open: 93.79 close: 94.09\n",
      "2016-01-28 FILLED BUY 1 WIKI/AAPL at 93.79\n",
      "2016-01-28 SELL signal\n",
      "2016-01-28 ORDER SELL WIKI/AAPL 1\n",
      "2016-01-28 POSITION value:-93.790 upnl:0.300 rpnl:1.590\n",
      "2016-01-29 TICK WIKI/AAPL open: 94.79 close: 97.34\n",
      "2016-01-29 FILLED SELL 1 WIKI/AAPL at 94.79\n",
      "2016-01-29 SELL signal\n",
      "2016-01-29 ORDER SELL WIKI/AAPL 1\n",
      "2016-01-29 POSITION value:0.000 upnl:0.000 rpnl:1.000\n",
      "2016-02-01 TICK WIKI/AAPL open: 96.47 close: 96.43\n",
      "2016-02-01 FILLED SELL 1 WIKI/AAPL at 96.47\n",
      "2016-02-01 POSITION value:96.470 upnl:0.040 rpnl:1.000\n",
      "2016-02-02 TICK WIKI/AAPL open: 95.42 close: 94.48\n",
      "2016-02-02 BUY signal\n",
      "2016-02-02 ORDER BUY WIKI/AAPL 1\n",
      "2016-02-02 POSITION value:96.470 upnl:1.990 rpnl:1.000\n",
      "2016-02-03 TICK WIKI/AAPL open: 95.0 close: 96.35\n",
      "2016-02-03 FILLED BUY 1 WIKI/AAPL at 95.0\n",
      "2016-02-03 SELL signal\n",
      "2016-02-03 ORDER SELL WIKI/AAPL 1\n",
      "2016-02-03 POSITION value:0.000 upnl:0.000 rpnl:1.470\n",
      "2016-02-04 TICK WIKI/AAPL open: 95.86 close: 96.6\n",
      "2016-02-04 FILLED SELL 1 WIKI/AAPL at 95.86\n",
      "2016-02-04 POSITION value:95.860 upnl:-0.740 rpnl:1.470\n",
      "2016-02-05 TICK WIKI/AAPL open: 96.52 close: 94.02\n",
      "2016-02-05 BUY signal\n",
      "2016-02-05 ORDER BUY WIKI/AAPL 1\n",
      "2016-02-05 POSITION value:95.860 upnl:1.840 rpnl:1.470\n",
      "2016-02-08 TICK WIKI/AAPL open: 93.13 close: 95.01\n",
      "2016-02-08 FILLED BUY 1 WIKI/AAPL at 93.13\n",
      "2016-02-08 POSITION value:0.000 upnl:0.000 rpnl:2.730\n",
      "2016-02-09 TICK WIKI/AAPL open: 94.29 close: 94.99\n",
      "2016-02-09 POSITION value:0.000 upnl:0.000 rpnl:2.730\n",
      "2016-02-10 TICK WIKI/AAPL open: 95.92 close: 94.27\n",
      "2016-02-10 POSITION value:0.000 upnl:0.000 rpnl:2.730\n",
      "2016-02-11 TICK WIKI/AAPL open: 93.79 close: 93.7\n",
      "2016-02-11 POSITION value:0.000 upnl:0.000 rpnl:2.730\n",
      "2016-02-12 TICK WIKI/AAPL open: 94.19 close: 93.99\n",
      "2016-02-12 POSITION value:0.000 upnl:0.000 rpnl:2.730\n",
      "2016-02-16 TICK WIKI/AAPL open: 95.02 close: 96.64\n",
      "2016-02-16 SELL signal\n",
      "2016-02-16 ORDER SELL WIKI/AAPL 1\n",
      "2016-02-16 POSITION value:0.000 upnl:0.000 rpnl:2.730\n",
      "2016-02-17 TICK WIKI/AAPL open: 96.67 close: 98.12\n",
      "2016-02-17 FILLED SELL 1 WIKI/AAPL at 96.67\n",
      "2016-02-17 POSITION value:96.670 upnl:-1.450 rpnl:2.730\n",
      "2016-02-18 TICK WIKI/AAPL open: 98.84 close: 96.26\n",
      "2016-02-18 BUY signal\n",
      "2016-02-18 ORDER BUY WIKI/AAPL 1\n",
      "2016-02-18 POSITION value:96.670 upnl:0.410 rpnl:2.730\n",
      "2016-02-19 TICK WIKI/AAPL open: 96.0 close: 96.04\n",
      "2016-02-19 FILLED BUY 1 WIKI/AAPL at 96.0\n",
      "2016-02-19 POSITION value:0.000 upnl:0.000 rpnl:0.670\n",
      "2016-02-22 TICK WIKI/AAPL open: 96.31 close: 96.88\n",
      "2016-02-22 POSITION value:0.000 upnl:0.000 rpnl:0.670\n",
      "2016-02-23 TICK WIKI/AAPL open: 96.4 close: 94.69\n",
      "2016-02-23 BUY signal\n",
      "2016-02-23 ORDER BUY WIKI/AAPL 1\n",
      "2016-02-23 POSITION value:0.000 upnl:0.000 rpnl:0.670\n",
      "2016-02-24 TICK WIKI/AAPL open: 93.98 close: 96.1\n",
      "2016-02-24 FILLED BUY 1 WIKI/AAPL at 93.98\n",
      "2016-02-24 SELL signal\n",
      "2016-02-24 ORDER SELL WIKI/AAPL 1\n",
      "2016-02-24 POSITION value:-93.980 upnl:2.120 rpnl:0.670\n",
      "2016-02-25 TICK WIKI/AAPL open: 96.05 close: 96.76\n",
      "2016-02-25 FILLED SELL 1 WIKI/AAPL at 96.05\n",
      "2016-02-25 POSITION value:0.000 upnl:0.000 rpnl:2.070\n",
      "2016-02-26 TICK WIKI/AAPL open: 97.2 close: 96.91\n",
      "2016-02-26 POSITION value:0.000 upnl:0.000 rpnl:2.070\n",
      "2016-02-29 TICK WIKI/AAPL open: 96.86 close: 96.69\n",
      "2016-02-29 POSITION value:0.000 upnl:0.000 rpnl:2.070\n",
      "2016-03-01 TICK WIKI/AAPL open: 97.65 close: 100.53\n",
      "2016-03-01 SELL signal\n",
      "2016-03-01 ORDER SELL WIKI/AAPL 1\n",
      "2016-03-01 POSITION value:0.000 upnl:0.000 rpnl:2.070\n",
      "2016-03-02 TICK WIKI/AAPL open: 100.51 close: 100.75\n",
      "2016-03-02 FILLED SELL 1 WIKI/AAPL at 100.51\n",
      "2016-03-02 POSITION value:100.510 upnl:-0.240 rpnl:2.070\n",
      "2016-03-03 TICK WIKI/AAPL open: 100.58 close: 101.5\n",
      "2016-03-03 POSITION value:100.510 upnl:-0.990 rpnl:2.070\n",
      "2016-03-04 TICK WIKI/AAPL open: 102.37 close: 103.01\n",
      "2016-03-04 POSITION value:100.510 upnl:-2.500 rpnl:2.070\n",
      "2016-03-07 TICK WIKI/AAPL open: 102.39 close: 101.87\n",
      "2016-03-07 BUY signal\n",
      "2016-03-07 ORDER BUY WIKI/AAPL 1\n",
      "2016-03-07 POSITION value:100.510 upnl:-1.360 rpnl:2.070\n",
      "2016-03-08 TICK WIKI/AAPL open: 100.78 close: 101.03\n",
      "2016-03-08 FILLED BUY 1 WIKI/AAPL at 100.78\n",
      "2016-03-08 BUY signal\n",
      "2016-03-08 ORDER BUY WIKI/AAPL 1\n",
      "2016-03-08 POSITION value:0.000 upnl:0.000 rpnl:-0.270\n",
      "2016-03-09 TICK WIKI/AAPL open: 101.31 close: 101.12\n",
      "2016-03-09 FILLED BUY 1 WIKI/AAPL at 101.31\n",
      "2016-03-09 POSITION value:-101.310 upnl:-0.190 rpnl:-0.270\n",
      "2016-03-10 TICK WIKI/AAPL open: 101.41 close: 101.17\n",
      "2016-03-10 POSITION value:-101.310 upnl:-0.140 rpnl:-0.270\n",
      "2016-03-11 TICK WIKI/AAPL open: 102.24 close: 102.26\n",
      "2016-03-11 POSITION value:-101.310 upnl:0.950 rpnl:-0.270\n",
      "2016-03-14 TICK WIKI/AAPL open: 101.91 close: 102.52\n",
      "2016-03-14 POSITION value:-101.310 upnl:1.210 rpnl:-0.270\n",
      "2016-03-15 TICK WIKI/AAPL open: 103.96 close: 104.58\n",
      "2016-03-15 SELL signal\n",
      "2016-03-15 ORDER SELL WIKI/AAPL 1\n",
      "2016-03-15 POSITION value:-101.310 upnl:3.270 rpnl:-0.270\n",
      "2016-03-16 TICK WIKI/AAPL open: 104.61 close: 105.97\n",
      "2016-03-16 FILLED SELL 1 WIKI/AAPL at 104.61\n",
      "2016-03-16 SELL signal\n",
      "2016-03-16 ORDER SELL WIKI/AAPL 1\n",
      "2016-03-16 POSITION value:0.000 upnl:0.000 rpnl:3.300\n",
      "2016-03-17 TICK WIKI/AAPL open: 105.52 close: 105.8\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2016-03-17 FILLED SELL 1 WIKI/AAPL at 105.52\n",
      "2016-03-17 BUY signal\n",
      "2016-03-17 ORDER BUY WIKI/AAPL 1\n",
      "2016-03-17 POSITION value:105.520 upnl:-0.280 rpnl:3.300\n",
      "2016-03-18 TICK WIKI/AAPL open: 106.34 close: 105.92\n",
      "2016-03-18 FILLED BUY 1 WIKI/AAPL at 106.34\n",
      "2016-03-18 POSITION value:0.000 upnl:0.000 rpnl:-0.820\n",
      "2016-03-21 TICK WIKI/AAPL open: 105.93 close: 105.91\n",
      "2016-03-21 BUY signal\n",
      "2016-03-21 ORDER BUY WIKI/AAPL 1\n",
      "2016-03-21 POSITION value:0.000 upnl:0.000 rpnl:-0.820\n",
      "2016-03-22 TICK WIKI/AAPL open: 105.25 close: 106.72\n",
      "2016-03-22 FILLED BUY 1 WIKI/AAPL at 105.25\n",
      "2016-03-22 POSITION value:-105.250 upnl:1.470 rpnl:-0.820\n",
      "2016-03-23 TICK WIKI/AAPL open: 106.48 close: 106.13\n",
      "2016-03-23 POSITION value:-105.250 upnl:0.880 rpnl:-0.820\n",
      "2016-03-24 TICK WIKI/AAPL open: 105.47 close: 105.67\n",
      "2016-03-24 POSITION value:-105.250 upnl:0.420 rpnl:-0.820\n",
      "2016-03-28 TICK WIKI/AAPL open: 106.0 close: 105.19\n",
      "2016-03-28 POSITION value:-105.250 upnl:-0.060 rpnl:-0.820\n",
      "2016-03-29 TICK WIKI/AAPL open: 104.89 close: 107.68\n",
      "2016-03-29 SELL signal\n",
      "2016-03-29 ORDER SELL WIKI/AAPL 1\n",
      "2016-03-29 POSITION value:-105.250 upnl:2.430 rpnl:-0.820\n",
      "2016-03-30 TICK WIKI/AAPL open: 108.65 close: 109.56\n",
      "2016-03-30 FILLED SELL 1 WIKI/AAPL at 108.65\n",
      "2016-03-30 SELL signal\n",
      "2016-03-30 ORDER SELL WIKI/AAPL 1\n",
      "2016-03-30 POSITION value:0.000 upnl:0.000 rpnl:3.400\n",
      "2016-03-31 TICK WIKI/AAPL open: 109.72 close: 108.99\n",
      "2016-03-31 FILLED SELL 1 WIKI/AAPL at 109.72\n",
      "2016-03-31 BUY signal\n",
      "2016-03-31 ORDER BUY WIKI/AAPL 1\n",
      "2016-03-31 POSITION value:109.720 upnl:0.730 rpnl:3.400\n",
      "2016-04-01 TICK WIKI/AAPL open: 108.78 close: 109.99\n",
      "2016-04-01 FILLED BUY 1 WIKI/AAPL at 108.78\n",
      "2016-04-01 SELL signal\n",
      "2016-04-01 ORDER SELL WIKI/AAPL 1\n",
      "2016-04-01 POSITION value:0.000 upnl:0.000 rpnl:0.940\n",
      "2016-04-04 TICK WIKI/AAPL open: 110.42 close: 111.12\n",
      "2016-04-04 FILLED SELL 1 WIKI/AAPL at 110.42\n",
      "2016-04-04 POSITION value:110.420 upnl:-0.700 rpnl:0.940\n",
      "2016-04-05 TICK WIKI/AAPL open: 109.51 close: 109.81\n",
      "2016-04-05 BUY signal\n",
      "2016-04-05 ORDER BUY WIKI/AAPL 1\n",
      "2016-04-05 POSITION value:110.420 upnl:0.610 rpnl:0.940\n",
      "2016-04-06 TICK WIKI/AAPL open: 110.23 close: 110.96\n",
      "2016-04-06 FILLED BUY 1 WIKI/AAPL at 110.23\n",
      "2016-04-06 SELL signal\n",
      "2016-04-06 ORDER SELL WIKI/AAPL 1\n",
      "2016-04-06 POSITION value:0.000 upnl:0.000 rpnl:0.190\n",
      "2016-04-07 TICK WIKI/AAPL open: 109.95 close: 108.54\n",
      "2016-04-07 FILLED SELL 1 WIKI/AAPL at 109.95\n",
      "2016-04-07 BUY signal\n",
      "2016-04-07 ORDER BUY WIKI/AAPL 1\n",
      "2016-04-07 POSITION value:109.950 upnl:1.410 rpnl:0.190\n",
      "2016-04-08 TICK WIKI/AAPL open: 108.91 close: 108.66\n",
      "2016-04-08 FILLED BUY 1 WIKI/AAPL at 108.91\n",
      "2016-04-08 POSITION value:0.000 upnl:0.000 rpnl:1.040\n",
      "2016-04-11 TICK WIKI/AAPL open: 108.97 close: 109.02\n",
      "2016-04-11 POSITION value:0.000 upnl:0.000 rpnl:1.040\n",
      "2016-04-12 TICK WIKI/AAPL open: 109.34 close: 110.44\n",
      "2016-04-12 SELL signal\n",
      "2016-04-12 ORDER SELL WIKI/AAPL 1\n",
      "2016-04-12 POSITION value:0.000 upnl:0.000 rpnl:1.040\n",
      "2016-04-13 TICK WIKI/AAPL open: 110.8 close: 112.04\n",
      "2016-04-13 FILLED SELL 1 WIKI/AAPL at 110.8\n",
      "2016-04-13 POSITION value:110.800 upnl:-1.240 rpnl:1.040\n",
      "2016-04-14 TICK WIKI/AAPL open: 111.62 close: 112.1\n",
      "2016-04-14 POSITION value:110.800 upnl:-1.300 rpnl:1.040\n",
      "2016-04-15 TICK WIKI/AAPL open: 112.11 close: 109.85\n",
      "2016-04-15 BUY signal\n",
      "2016-04-15 ORDER BUY WIKI/AAPL 1\n",
      "2016-04-15 POSITION value:110.800 upnl:0.950 rpnl:1.040\n",
      "2016-04-18 TICK WIKI/AAPL open: 108.89 close: 107.48\n",
      "2016-04-18 FILLED BUY 1 WIKI/AAPL at 108.89\n",
      "2016-04-18 BUY signal\n",
      "2016-04-18 ORDER BUY WIKI/AAPL 1\n",
      "2016-04-18 POSITION value:0.000 upnl:0.000 rpnl:1.910\n",
      "2016-04-19 TICK WIKI/AAPL open: 107.88 close: 106.91\n",
      "2016-04-19 FILLED BUY 1 WIKI/AAPL at 107.88\n",
      "2016-04-19 POSITION value:-107.880 upnl:-0.970 rpnl:1.910\n",
      "2016-04-20 TICK WIKI/AAPL open: 106.64 close: 107.13\n",
      "2016-04-20 POSITION value:-107.880 upnl:-0.750 rpnl:1.910\n",
      "2016-04-21 TICK WIKI/AAPL open: 106.93 close: 105.97\n",
      "2016-04-21 POSITION value:-107.880 upnl:-1.910 rpnl:1.910\n",
      "2016-04-22 TICK WIKI/AAPL open: 105.01 close: 105.68\n",
      "2016-04-22 POSITION value:-107.880 upnl:-2.200 rpnl:1.910\n",
      "2016-04-25 TICK WIKI/AAPL open: 105.0 close: 105.08\n",
      "2016-04-25 POSITION value:-107.880 upnl:-2.800 rpnl:1.910\n",
      "2016-04-26 TICK WIKI/AAPL open: 103.91 close: 104.35\n",
      "2016-04-26 POSITION value:-107.880 upnl:-3.530 rpnl:1.910\n",
      "2016-04-27 TICK WIKI/AAPL open: 96.0 close: 97.82\n",
      "2016-04-27 POSITION value:-107.880 upnl:-10.060 rpnl:1.910\n",
      "2016-04-28 TICK WIKI/AAPL open: 97.61 close: 94.83\n",
      "2016-04-28 POSITION value:-107.880 upnl:-13.050 rpnl:1.910\n",
      "2016-04-29 TICK WIKI/AAPL open: 93.99 close: 93.74\n",
      "2016-04-29 POSITION value:-107.880 upnl:-14.140 rpnl:1.910\n",
      "2016-05-02 TICK WIKI/AAPL open: 93.965 close: 93.64\n",
      "2016-05-02 POSITION value:-107.880 upnl:-14.240 rpnl:1.910\n",
      "2016-05-03 TICK WIKI/AAPL open: 94.2 close: 95.18\n",
      "2016-05-03 SELL signal\n",
      "2016-05-03 ORDER SELL WIKI/AAPL 1\n",
      "2016-05-03 POSITION value:-107.880 upnl:-12.700 rpnl:1.910\n",
      "2016-05-04 TICK WIKI/AAPL open: 95.2 close: 94.19\n",
      "2016-05-04 FILLED SELL 1 WIKI/AAPL at 95.2\n",
      "2016-05-04 POSITION value:0.000 upnl:0.000 rpnl:-12.680\n",
      "2016-05-05 TICK WIKI/AAPL open: 94.0 close: 93.24\n",
      "2016-05-05 POSITION value:0.000 upnl:0.000 rpnl:-12.680\n",
      "2016-05-06 TICK WIKI/AAPL open: 93.37 close: 92.72\n",
      "2016-05-06 POSITION value:0.000 upnl:0.000 rpnl:-12.680\n",
      "2016-05-09 TICK WIKI/AAPL open: 93.0 close: 92.79\n",
      "2016-05-09 SELL signal\n",
      "2016-05-09 ORDER SELL WIKI/AAPL 1\n",
      "2016-05-09 POSITION value:0.000 upnl:0.000 rpnl:-12.680\n",
      "2016-05-10 TICK WIKI/AAPL open: 93.33 close: 93.42\n",
      "2016-05-10 FILLED SELL 1 WIKI/AAPL at 93.33\n",
      "2016-05-10 POSITION value:93.330 upnl:-0.090 rpnl:-12.680\n",
      "2016-05-11 TICK WIKI/AAPL open: 93.48 close: 92.51\n",
      "2016-05-11 POSITION value:93.330 upnl:0.820 rpnl:-12.680\n",
      "2016-05-12 TICK WIKI/AAPL open: 92.72 close: 90.34\n",
      "2016-05-12 BUY signal\n",
      "2016-05-12 ORDER BUY WIKI/AAPL 1\n",
      "2016-05-12 POSITION value:93.330 upnl:2.990 rpnl:-12.680\n",
      "2016-05-13 TICK WIKI/AAPL open: 90.0 close: 90.52\n",
      "2016-05-13 FILLED BUY 1 WIKI/AAPL at 90.0\n",
      "2016-05-13 SELL signal\n",
      "2016-05-13 ORDER SELL WIKI/AAPL 1\n",
      "2016-05-13 POSITION value:0.000 upnl:0.000 rpnl:3.330\n",
      "2016-05-16 TICK WIKI/AAPL open: 92.39 close: 93.88\n",
      "2016-05-16 FILLED SELL 1 WIKI/AAPL at 92.39\n",
      "2016-05-16 POSITION value:92.390 upnl:-1.490 rpnl:3.330\n",
      "2016-05-17 TICK WIKI/AAPL open: 94.55 close: 93.49\n",
      "2016-05-17 POSITION value:92.390 upnl:-1.100 rpnl:3.330\n",
      "2016-05-18 TICK WIKI/AAPL open: 94.16 close: 94.56\n",
      "2016-05-18 POSITION value:92.390 upnl:-2.170 rpnl:3.330\n",
      "2016-05-19 TICK WIKI/AAPL open: 94.64 close: 94.2\n",
      "2016-05-19 POSITION value:92.390 upnl:-1.810 rpnl:3.330\n",
      "2016-05-20 TICK WIKI/AAPL open: 94.64 close: 95.22\n",
      "2016-05-20 POSITION value:92.390 upnl:-2.830 rpnl:3.330\n",
      "2016-05-23 TICK WIKI/AAPL open: 95.87 close: 96.43\n",
      "2016-05-23 POSITION value:92.390 upnl:-4.040 rpnl:3.330\n",
      "2016-05-24 TICK WIKI/AAPL open: 97.22 close: 97.9\n",
      "2016-05-24 POSITION value:92.390 upnl:-5.510 rpnl:3.330\n",
      "2016-05-25 TICK WIKI/AAPL open: 98.67 close: 99.62\n",
      "2016-05-25 POSITION value:92.390 upnl:-7.230 rpnl:3.330\n",
      "2016-05-26 TICK WIKI/AAPL open: 99.68 close: 100.41\n",
      "2016-05-26 POSITION value:92.390 upnl:-8.020 rpnl:3.330\n",
      "2016-05-27 TICK WIKI/AAPL open: 99.44 close: 100.35\n",
      "2016-05-27 POSITION value:92.390 upnl:-7.960 rpnl:3.330\n",
      "2016-05-31 TICK WIKI/AAPL open: 99.6 close: 99.86\n",
      "2016-05-31 BUY signal\n",
      "2016-05-31 ORDER BUY WIKI/AAPL 1\n",
      "2016-05-31 POSITION value:92.390 upnl:-7.470 rpnl:3.330\n",
      "2016-06-01 TICK WIKI/AAPL open: 99.02 close: 98.46\n",
      "2016-06-01 FILLED BUY 1 WIKI/AAPL at 99.02\n",
      "2016-06-01 BUY signal\n",
      "2016-06-01 ORDER BUY WIKI/AAPL 1\n",
      "2016-06-01 POSITION value:0.000 upnl:0.000 rpnl:-6.630\n",
      "2016-06-02 TICK WIKI/AAPL open: 97.6 close: 97.72\n",
      "2016-06-02 FILLED BUY 1 WIKI/AAPL at 97.6\n",
      "2016-06-02 POSITION value:-97.600 upnl:0.120 rpnl:-6.630\n",
      "2016-06-03 TICK WIKI/AAPL open: 97.79 close: 97.92\n",
      "2016-06-03 POSITION value:-97.600 upnl:0.320 rpnl:-6.630\n",
      "2016-06-06 TICK WIKI/AAPL open: 97.99 close: 98.63\n",
      "2016-06-06 POSITION value:-97.600 upnl:1.030 rpnl:-6.630\n",
      "2016-06-07 TICK WIKI/AAPL open: 99.25 close: 99.03\n",
      "2016-06-07 POSITION value:-97.600 upnl:1.430 rpnl:-6.630\n",
      "2016-06-08 TICK WIKI/AAPL open: 99.02 close: 98.94\n",
      "2016-06-08 POSITION value:-97.600 upnl:1.340 rpnl:-6.630\n",
      "2016-06-09 TICK WIKI/AAPL open: 98.5 close: 99.65\n",
      "2016-06-09 POSITION value:-97.600 upnl:2.050 rpnl:-6.630\n",
      "2016-06-10 TICK WIKI/AAPL open: 98.53 close: 98.83\n",
      "2016-06-10 POSITION value:-97.600 upnl:1.230 rpnl:-6.630\n",
      "2016-06-13 TICK WIKI/AAPL open: 98.69 close: 97.34\n",
      "2016-06-13 POSITION value:-97.600 upnl:-0.260 rpnl:-6.630\n",
      "2016-06-14 TICK WIKI/AAPL open: 97.32 close: 97.46\n",
      "2016-06-14 POSITION value:-97.600 upnl:-0.140 rpnl:-6.630\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2016-06-15 TICK WIKI/AAPL open: 97.82 close: 97.14\n",
      "2016-06-15 POSITION value:-97.600 upnl:-0.460 rpnl:-6.630\n",
      "2016-06-16 TICK WIKI/AAPL open: 96.45 close: 97.55\n",
      "2016-06-16 POSITION value:-97.600 upnl:-0.050 rpnl:-6.630\n",
      "2016-06-17 TICK WIKI/AAPL open: 96.62 close: 95.33\n",
      "2016-06-17 POSITION value:-97.600 upnl:-2.270 rpnl:-6.630\n",
      "2016-06-20 TICK WIKI/AAPL open: 96.0 close: 95.1\n",
      "2016-06-20 POSITION value:-97.600 upnl:-2.500 rpnl:-6.630\n",
      "2016-06-21 TICK WIKI/AAPL open: 94.94 close: 95.91\n",
      "2016-06-21 SELL signal\n",
      "2016-06-21 ORDER SELL WIKI/AAPL 1\n",
      "2016-06-21 POSITION value:-97.600 upnl:-1.690 rpnl:-6.630\n",
      "2016-06-22 TICK WIKI/AAPL open: 96.25 close: 95.55\n",
      "2016-06-22 FILLED SELL 1 WIKI/AAPL at 96.25\n",
      "2016-06-22 POSITION value:0.000 upnl:0.000 rpnl:-1.350\n",
      "2016-06-23 TICK WIKI/AAPL open: 95.94 close: 96.1\n",
      "2016-06-23 SELL signal\n",
      "2016-06-23 ORDER SELL WIKI/AAPL 1\n",
      "2016-06-23 POSITION value:0.000 upnl:0.000 rpnl:-1.350\n",
      "2016-06-24 TICK WIKI/AAPL open: 92.91 close: 93.4\n",
      "2016-06-24 FILLED SELL 1 WIKI/AAPL at 92.91\n",
      "2016-06-24 BUY signal\n",
      "2016-06-24 ORDER BUY WIKI/AAPL 1\n",
      "2016-06-24 POSITION value:92.910 upnl:-0.490 rpnl:-1.350\n",
      "2016-06-27 TICK WIKI/AAPL open: 93.0 close: 92.04\n",
      "2016-06-27 FILLED BUY 1 WIKI/AAPL at 93.0\n",
      "2016-06-27 BUY signal\n",
      "2016-06-27 ORDER BUY WIKI/AAPL 1\n",
      "2016-06-27 POSITION value:0.000 upnl:0.000 rpnl:-0.090\n",
      "2016-06-28 TICK WIKI/AAPL open: 92.9 close: 93.59\n",
      "2016-06-28 FILLED BUY 1 WIKI/AAPL at 92.9\n",
      "2016-06-28 SELL signal\n",
      "2016-06-28 ORDER SELL WIKI/AAPL 1\n",
      "2016-06-28 POSITION value:-92.900 upnl:0.690 rpnl:-0.090\n",
      "2016-06-29 TICK WIKI/AAPL open: 93.97 close: 94.4\n",
      "2016-06-29 FILLED SELL 1 WIKI/AAPL at 93.97\n",
      "2016-06-29 SELL signal\n",
      "2016-06-29 ORDER SELL WIKI/AAPL 1\n",
      "2016-06-29 POSITION value:0.000 upnl:0.000 rpnl:1.070\n",
      "2016-06-30 TICK WIKI/AAPL open: 94.44 close: 95.6\n",
      "2016-06-30 FILLED SELL 1 WIKI/AAPL at 94.44\n",
      "2016-06-30 POSITION value:94.440 upnl:-1.160 rpnl:1.070\n",
      "2016-07-01 TICK WIKI/AAPL open: 95.49 close: 95.89\n",
      "2016-07-01 POSITION value:94.440 upnl:-1.450 rpnl:1.070\n",
      "2016-07-05 TICK WIKI/AAPL open: 95.39 close: 94.99\n",
      "2016-07-05 BUY signal\n",
      "2016-07-05 ORDER BUY WIKI/AAPL 1\n",
      "2016-07-05 POSITION value:94.440 upnl:-0.550 rpnl:1.070\n",
      "2016-07-06 TICK WIKI/AAPL open: 94.6 close: 95.53\n",
      "2016-07-06 FILLED BUY 1 WIKI/AAPL at 94.6\n",
      "2016-07-06 SELL signal\n",
      "2016-07-06 ORDER SELL WIKI/AAPL 1\n",
      "2016-07-06 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2016-07-07 TICK WIKI/AAPL open: 95.7 close: 95.94\n",
      "2016-07-07 FILLED SELL 1 WIKI/AAPL at 95.7\n",
      "2016-07-07 POSITION value:95.700 upnl:-0.240 rpnl:-0.160\n",
      "2016-07-08 TICK WIKI/AAPL open: 96.49 close: 96.68\n",
      "2016-07-08 POSITION value:95.700 upnl:-0.980 rpnl:-0.160\n",
      "2016-07-11 TICK WIKI/AAPL open: 96.75 close: 96.98\n",
      "2016-07-11 POSITION value:95.700 upnl:-1.280 rpnl:-0.160\n",
      "2016-07-12 TICK WIKI/AAPL open: 97.17 close: 97.42\n",
      "2016-07-12 POSITION value:95.700 upnl:-1.720 rpnl:-0.160\n",
      "2016-07-13 TICK WIKI/AAPL open: 97.41 close: 96.87\n",
      "2016-07-13 POSITION value:95.700 upnl:-1.170 rpnl:-0.160\n",
      "2016-07-14 TICK WIKI/AAPL open: 97.39 close: 98.79\n",
      "2016-07-14 POSITION value:95.700 upnl:-3.090 rpnl:-0.160\n",
      "2016-07-15 TICK WIKI/AAPL open: 98.92 close: 98.78\n",
      "2016-07-15 POSITION value:95.700 upnl:-3.080 rpnl:-0.160\n",
      "2016-07-18 TICK WIKI/AAPL open: 98.7 close: 99.83\n",
      "2016-07-18 POSITION value:95.700 upnl:-4.130 rpnl:-0.160\n",
      "2016-07-19 TICK WIKI/AAPL open: 99.56 close: 99.87\n",
      "2016-07-19 POSITION value:95.700 upnl:-4.170 rpnl:-0.160\n",
      "2016-07-20 TICK WIKI/AAPL open: 100.0 close: 99.96\n",
      "2016-07-20 POSITION value:95.700 upnl:-4.260 rpnl:-0.160\n",
      "2016-07-21 TICK WIKI/AAPL open: 99.83 close: 99.43\n",
      "2016-07-21 BUY signal\n",
      "2016-07-21 ORDER BUY WIKI/AAPL 1\n",
      "2016-07-21 POSITION value:95.700 upnl:-3.730 rpnl:-0.160\n",
      "2016-07-22 TICK WIKI/AAPL open: 99.26 close: 98.66\n",
      "2016-07-22 FILLED BUY 1 WIKI/AAPL at 99.26\n",
      "2016-07-22 BUY signal\n",
      "2016-07-22 ORDER BUY WIKI/AAPL 1\n",
      "2016-07-22 POSITION value:0.000 upnl:0.000 rpnl:-3.560\n",
      "2016-07-25 TICK WIKI/AAPL open: 98.25 close: 97.34\n",
      "2016-07-25 FILLED BUY 1 WIKI/AAPL at 98.25\n",
      "2016-07-25 POSITION value:-98.250 upnl:-0.910 rpnl:-3.560\n",
      "2016-07-26 TICK WIKI/AAPL open: 96.82 close: 96.67\n",
      "2016-07-26 POSITION value:-98.250 upnl:-1.580 rpnl:-3.560\n",
      "2016-07-27 TICK WIKI/AAPL open: 104.265 close: 102.95\n",
      "2016-07-27 SELL signal\n",
      "2016-07-27 ORDER SELL WIKI/AAPL 1\n",
      "2016-07-27 POSITION value:-98.250 upnl:4.700 rpnl:-3.560\n",
      "2016-07-28 TICK WIKI/AAPL open: 102.83 close: 104.34\n",
      "2016-07-28 FILLED SELL 1 WIKI/AAPL at 102.83\n",
      "2016-07-28 SELL signal\n",
      "2016-07-28 ORDER SELL WIKI/AAPL 1\n",
      "2016-07-28 POSITION value:0.000 upnl:0.000 rpnl:4.580\n",
      "2016-07-29 TICK WIKI/AAPL open: 104.19 close: 104.21\n",
      "2016-07-29 FILLED SELL 1 WIKI/AAPL at 104.19\n",
      "2016-07-29 POSITION value:104.190 upnl:-0.020 rpnl:4.580\n",
      "2016-08-01 TICK WIKI/AAPL open: 104.41 close: 106.05\n",
      "2016-08-01 POSITION value:104.190 upnl:-1.860 rpnl:4.580\n",
      "2016-08-02 TICK WIKI/AAPL open: 106.05 close: 104.48\n",
      "2016-08-02 BUY signal\n",
      "2016-08-02 ORDER BUY WIKI/AAPL 1\n",
      "2016-08-02 POSITION value:104.190 upnl:-0.290 rpnl:4.580\n",
      "2016-08-03 TICK WIKI/AAPL open: 104.81 close: 105.79\n",
      "2016-08-03 FILLED BUY 1 WIKI/AAPL at 104.81\n",
      "2016-08-03 POSITION value:0.000 upnl:0.000 rpnl:-0.620\n",
      "2016-08-04 TICK WIKI/AAPL open: 105.58 close: 105.87\n",
      "2016-08-04 POSITION value:0.000 upnl:0.000 rpnl:-0.620\n",
      "2016-08-05 TICK WIKI/AAPL open: 106.27 close: 107.48\n",
      "2016-08-05 SELL signal\n",
      "2016-08-05 ORDER SELL WIKI/AAPL 1\n",
      "2016-08-05 POSITION value:0.000 upnl:0.000 rpnl:-0.620\n",
      "2016-08-08 TICK WIKI/AAPL open: 107.52 close: 108.37\n",
      "2016-08-08 FILLED SELL 1 WIKI/AAPL at 107.52\n",
      "2016-08-08 POSITION value:107.520 upnl:-0.850 rpnl:-0.620\n",
      "2016-08-09 TICK WIKI/AAPL open: 108.23 close: 108.81\n",
      "2016-08-09 POSITION value:107.520 upnl:-1.290 rpnl:-0.620\n",
      "2016-08-10 TICK WIKI/AAPL open: 108.71 close: 108.0\n",
      "2016-08-10 BUY signal\n",
      "2016-08-10 ORDER BUY WIKI/AAPL 1\n",
      "2016-08-10 POSITION value:107.520 upnl:-0.480 rpnl:-0.620\n",
      "2016-08-11 TICK WIKI/AAPL open: 108.52 close: 107.93\n",
      "2016-08-11 FILLED BUY 1 WIKI/AAPL at 108.52\n",
      "2016-08-11 POSITION value:0.000 upnl:0.000 rpnl:-1.000\n",
      "2016-08-12 TICK WIKI/AAPL open: 107.78 close: 108.18\n",
      "2016-08-12 POSITION value:0.000 upnl:0.000 rpnl:-1.000\n",
      "2016-08-15 TICK WIKI/AAPL open: 108.14 close: 109.48\n",
      "2016-08-15 POSITION value:0.000 upnl:0.000 rpnl:-1.000\n",
      "2016-08-16 TICK WIKI/AAPL open: 109.63 close: 109.38\n",
      "2016-08-16 POSITION value:0.000 upnl:0.000 rpnl:-1.000\n",
      "2016-08-17 TICK WIKI/AAPL open: 109.1 close: 109.22\n",
      "2016-08-17 POSITION value:0.000 upnl:0.000 rpnl:-1.000\n",
      "2016-08-18 TICK WIKI/AAPL open: 109.23 close: 109.08\n",
      "2016-08-18 POSITION value:0.000 upnl:0.000 rpnl:-1.000\n",
      "2016-08-19 TICK WIKI/AAPL open: 108.77 close: 109.36\n",
      "2016-08-19 POSITION value:0.000 upnl:0.000 rpnl:-1.000\n",
      "2016-08-22 TICK WIKI/AAPL open: 108.86 close: 108.51\n",
      "2016-08-22 BUY signal\n",
      "2016-08-22 ORDER BUY WIKI/AAPL 1\n",
      "2016-08-22 POSITION value:0.000 upnl:0.000 rpnl:-1.000\n",
      "2016-08-23 TICK WIKI/AAPL open: 108.59 close: 108.85\n",
      "2016-08-23 FILLED BUY 1 WIKI/AAPL at 108.59\n",
      "2016-08-23 POSITION value:-108.590 upnl:0.260 rpnl:-1.000\n",
      "2016-08-24 TICK WIKI/AAPL open: 108.565 close: 108.03\n",
      "2016-08-24 POSITION value:-108.590 upnl:-0.560 rpnl:-1.000\n",
      "2016-08-25 TICK WIKI/AAPL open: 107.39 close: 107.57\n",
      "2016-08-25 POSITION value:-108.590 upnl:-1.020 rpnl:-1.000\n",
      "2016-08-26 TICK WIKI/AAPL open: 107.41 close: 106.94\n",
      "2016-08-26 POSITION value:-108.590 upnl:-1.650 rpnl:-1.000\n",
      "2016-08-29 TICK WIKI/AAPL open: 106.62 close: 106.82\n",
      "2016-08-29 POSITION value:-108.590 upnl:-1.770 rpnl:-1.000\n",
      "2016-08-30 TICK WIKI/AAPL open: 105.8 close: 106.0\n",
      "2016-08-30 POSITION value:-108.590 upnl:-2.590 rpnl:-1.000\n",
      "2016-08-31 TICK WIKI/AAPL open: 105.66 close: 106.1\n",
      "2016-08-31 POSITION value:-108.590 upnl:-2.490 rpnl:-1.000\n",
      "2016-09-01 TICK WIKI/AAPL open: 106.14 close: 106.73\n",
      "2016-09-01 SELL signal\n",
      "2016-09-01 ORDER SELL WIKI/AAPL 1\n",
      "2016-09-01 POSITION value:-108.590 upnl:-1.860 rpnl:-1.000\n",
      "2016-09-02 TICK WIKI/AAPL open: 107.7 close: 107.73\n",
      "2016-09-02 FILLED SELL 1 WIKI/AAPL at 107.7\n",
      "2016-09-02 SELL signal\n",
      "2016-09-02 ORDER SELL WIKI/AAPL 1\n",
      "2016-09-02 POSITION value:0.000 upnl:0.000 rpnl:-0.890\n",
      "2016-09-06 TICK WIKI/AAPL open: 107.9 close: 107.7\n",
      "2016-09-06 FILLED SELL 1 WIKI/AAPL at 107.9\n",
      "2016-09-06 POSITION value:107.900 upnl:0.200 rpnl:-0.890\n",
      "2016-09-07 TICK WIKI/AAPL open: 107.83 close: 108.36\n",
      "2016-09-07 POSITION value:107.900 upnl:-0.460 rpnl:-0.890\n",
      "2016-09-08 TICK WIKI/AAPL open: 107.25 close: 105.52\n",
      "2016-09-08 BUY signal\n",
      "2016-09-08 ORDER BUY WIKI/AAPL 1\n",
      "2016-09-08 POSITION value:107.900 upnl:2.380 rpnl:-0.890\n",
      "2016-09-09 TICK WIKI/AAPL open: 104.64 close: 103.13\n",
      "2016-09-09 FILLED BUY 1 WIKI/AAPL at 104.64\n",
      "2016-09-09 BUY signal\n",
      "2016-09-09 ORDER BUY WIKI/AAPL 1\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2016-09-09 POSITION value:0.000 upnl:0.000 rpnl:3.260\n",
      "2016-09-12 TICK WIKI/AAPL open: 102.65 close: 105.44\n",
      "2016-09-12 FILLED BUY 1 WIKI/AAPL at 102.65\n",
      "2016-09-12 SELL signal\n",
      "2016-09-12 ORDER SELL WIKI/AAPL 1\n",
      "2016-09-12 POSITION value:-102.650 upnl:2.790 rpnl:3.260\n",
      "2016-09-13 TICK WIKI/AAPL open: 107.51 close: 107.95\n",
      "2016-09-13 FILLED SELL 1 WIKI/AAPL at 107.51\n",
      "2016-09-13 SELL signal\n",
      "2016-09-13 ORDER SELL WIKI/AAPL 1\n",
      "2016-09-13 POSITION value:0.000 upnl:0.000 rpnl:4.860\n",
      "2016-09-14 TICK WIKI/AAPL open: 108.73 close: 111.77\n",
      "2016-09-14 FILLED SELL 1 WIKI/AAPL at 108.73\n",
      "2016-09-14 POSITION value:108.730 upnl:-3.040 rpnl:4.860\n",
      "2016-09-15 TICK WIKI/AAPL open: 113.86 close: 115.57\n",
      "2016-09-15 POSITION value:108.730 upnl:-6.840 rpnl:4.860\n",
      "2016-09-16 TICK WIKI/AAPL open: 115.12 close: 114.92\n",
      "2016-09-16 BUY signal\n",
      "2016-09-16 ORDER BUY WIKI/AAPL 1\n",
      "2016-09-16 POSITION value:108.730 upnl:-6.190 rpnl:4.860\n",
      "2016-09-19 TICK WIKI/AAPL open: 115.19 close: 113.58\n",
      "2016-09-19 FILLED BUY 1 WIKI/AAPL at 115.19\n",
      "2016-09-19 BUY signal\n",
      "2016-09-19 ORDER BUY WIKI/AAPL 1\n",
      "2016-09-19 POSITION value:0.000 upnl:0.000 rpnl:-6.460\n",
      "2016-09-20 TICK WIKI/AAPL open: 113.05 close: 113.57\n",
      "2016-09-20 FILLED BUY 1 WIKI/AAPL at 113.05\n",
      "2016-09-20 POSITION value:-113.050 upnl:0.520 rpnl:-6.460\n",
      "2016-09-21 TICK WIKI/AAPL open: 113.85 close: 113.55\n",
      "2016-09-21 POSITION value:-113.050 upnl:0.500 rpnl:-6.460\n",
      "2016-09-22 TICK WIKI/AAPL open: 114.35 close: 114.62\n",
      "2016-09-22 POSITION value:-113.050 upnl:1.570 rpnl:-6.460\n",
      "2016-09-23 TICK WIKI/AAPL open: 114.42 close: 112.71\n",
      "2016-09-23 POSITION value:-113.050 upnl:-0.340 rpnl:-6.460\n",
      "2016-09-26 TICK WIKI/AAPL open: 111.64 close: 112.88\n",
      "2016-09-26 POSITION value:-113.050 upnl:-0.170 rpnl:-6.460\n",
      "2016-09-27 TICK WIKI/AAPL open: 113.0 close: 113.09\n",
      "2016-09-27 POSITION value:-113.050 upnl:0.040 rpnl:-6.460\n",
      "2016-09-28 TICK WIKI/AAPL open: 113.69 close: 113.95\n",
      "2016-09-28 POSITION value:-113.050 upnl:0.900 rpnl:-6.460\n",
      "2016-09-29 TICK WIKI/AAPL open: 113.16 close: 112.18\n",
      "2016-09-29 POSITION value:-113.050 upnl:-0.870 rpnl:-6.460\n",
      "2016-09-30 TICK WIKI/AAPL open: 112.46 close: 113.05\n",
      "2016-09-30 POSITION value:-113.050 upnl:0.000 rpnl:-6.460\n",
      "2016-10-03 TICK WIKI/AAPL open: 112.71 close: 112.52\n",
      "2016-10-03 POSITION value:-113.050 upnl:-0.530 rpnl:-6.460\n",
      "2016-10-04 TICK WIKI/AAPL open: 113.06 close: 113.0\n",
      "2016-10-04 POSITION value:-113.050 upnl:-0.050 rpnl:-6.460\n",
      "2016-10-05 TICK WIKI/AAPL open: 113.4 close: 113.05\n",
      "2016-10-05 POSITION value:-113.050 upnl:0.000 rpnl:-6.460\n",
      "2016-10-06 TICK WIKI/AAPL open: 113.7 close: 113.89\n",
      "2016-10-06 POSITION value:-113.050 upnl:0.840 rpnl:-6.460\n",
      "2016-10-07 TICK WIKI/AAPL open: 114.31 close: 114.06\n",
      "2016-10-07 POSITION value:-113.050 upnl:1.010 rpnl:-6.460\n",
      "2016-10-10 TICK WIKI/AAPL open: 115.02 close: 116.05\n",
      "2016-10-10 SELL signal\n",
      "2016-10-10 ORDER SELL WIKI/AAPL 1\n",
      "2016-10-10 POSITION value:-113.050 upnl:3.000 rpnl:-6.460\n",
      "2016-10-11 TICK WIKI/AAPL open: 117.7 close: 116.3\n",
      "2016-10-11 FILLED SELL 1 WIKI/AAPL at 117.7\n",
      "2016-10-11 POSITION value:0.000 upnl:0.000 rpnl:4.650\n",
      "2016-10-12 TICK WIKI/AAPL open: 117.35 close: 117.34\n",
      "2016-10-12 SELL signal\n",
      "2016-10-12 ORDER SELL WIKI/AAPL 1\n",
      "2016-10-12 POSITION value:0.000 upnl:0.000 rpnl:4.650\n",
      "2016-10-13 TICK WIKI/AAPL open: 116.79 close: 116.98\n",
      "2016-10-13 FILLED SELL 1 WIKI/AAPL at 116.79\n",
      "2016-10-13 POSITION value:116.790 upnl:-0.190 rpnl:4.650\n",
      "2016-10-14 TICK WIKI/AAPL open: 117.88 close: 117.63\n",
      "2016-10-14 POSITION value:116.790 upnl:-0.840 rpnl:4.650\n",
      "2016-10-17 TICK WIKI/AAPL open: 117.33 close: 117.55\n",
      "2016-10-17 POSITION value:116.790 upnl:-0.760 rpnl:4.650\n",
      "2016-10-18 TICK WIKI/AAPL open: 118.18 close: 117.47\n",
      "2016-10-18 POSITION value:116.790 upnl:-0.680 rpnl:4.650\n",
      "2016-10-19 TICK WIKI/AAPL open: 117.25 close: 117.12\n",
      "2016-10-19 BUY signal\n",
      "2016-10-19 ORDER BUY WIKI/AAPL 1\n",
      "2016-10-19 POSITION value:116.790 upnl:-0.330 rpnl:4.650\n",
      "2016-10-20 TICK WIKI/AAPL open: 116.86 close: 117.06\n",
      "2016-10-20 FILLED BUY 1 WIKI/AAPL at 116.86\n",
      "2016-10-20 POSITION value:0.000 upnl:0.000 rpnl:-0.070\n",
      "2016-10-21 TICK WIKI/AAPL open: 116.81 close: 116.6\n",
      "2016-10-21 BUY signal\n",
      "2016-10-21 ORDER BUY WIKI/AAPL 1\n",
      "2016-10-21 POSITION value:0.000 upnl:0.000 rpnl:-0.070\n",
      "2016-10-24 TICK WIKI/AAPL open: 117.1 close: 117.65\n",
      "2016-10-24 FILLED BUY 1 WIKI/AAPL at 117.1\n",
      "2016-10-24 SELL signal\n",
      "2016-10-24 ORDER SELL WIKI/AAPL 1\n",
      "2016-10-24 POSITION value:-117.100 upnl:0.550 rpnl:-0.070\n",
      "2016-10-25 TICK WIKI/AAPL open: 117.95 close: 118.25\n",
      "2016-10-25 FILLED SELL 1 WIKI/AAPL at 117.95\n",
      "2016-10-25 POSITION value:0.000 upnl:0.000 rpnl:0.850\n",
      "2016-10-26 TICK WIKI/AAPL open: 114.31 close: 115.59\n",
      "2016-10-26 BUY signal\n",
      "2016-10-26 ORDER BUY WIKI/AAPL 1\n",
      "2016-10-26 POSITION value:0.000 upnl:0.000 rpnl:0.850\n",
      "2016-10-27 TICK WIKI/AAPL open: 115.39 close: 114.48\n",
      "2016-10-27 FILLED BUY 1 WIKI/AAPL at 115.39\n",
      "2016-10-27 POSITION value:-115.390 upnl:-0.910 rpnl:0.850\n",
      "2016-10-28 TICK WIKI/AAPL open: 113.87 close: 113.72\n",
      "2016-10-28 POSITION value:-115.390 upnl:-1.670 rpnl:0.850\n",
      "2016-10-31 TICK WIKI/AAPL open: 113.65 close: 113.54\n",
      "2016-10-31 POSITION value:-115.390 upnl:-1.850 rpnl:0.850\n",
      "2016-11-01 TICK WIKI/AAPL open: 113.46 close: 111.49\n",
      "2016-11-01 POSITION value:-115.390 upnl:-3.900 rpnl:0.850\n",
      "2016-11-02 TICK WIKI/AAPL open: 111.4 close: 111.59\n",
      "2016-11-02 POSITION value:-115.390 upnl:-3.800 rpnl:0.850\n",
      "2016-11-03 TICK WIKI/AAPL open: 110.98 close: 109.83\n",
      "2016-11-03 POSITION value:-115.390 upnl:-5.560 rpnl:0.850\n",
      "2016-11-04 TICK WIKI/AAPL open: 108.53 close: 108.84\n",
      "2016-11-04 POSITION value:-115.390 upnl:-6.550 rpnl:0.850\n",
      "2016-11-07 TICK WIKI/AAPL open: 110.08 close: 110.41\n",
      "2016-11-07 SELL signal\n",
      "2016-11-07 ORDER SELL WIKI/AAPL 1\n",
      "2016-11-07 POSITION value:-115.390 upnl:-4.980 rpnl:0.850\n",
      "2016-11-08 TICK WIKI/AAPL open: 110.31 close: 111.06\n",
      "2016-11-08 FILLED SELL 1 WIKI/AAPL at 110.31\n",
      "2016-11-08 SELL signal\n",
      "2016-11-08 ORDER SELL WIKI/AAPL 1\n",
      "2016-11-08 POSITION value:0.000 upnl:0.000 rpnl:-5.080\n",
      "2016-11-09 TICK WIKI/AAPL open: 109.88 close: 110.88\n",
      "2016-11-09 FILLED SELL 1 WIKI/AAPL at 109.88\n",
      "2016-11-09 POSITION value:109.880 upnl:-1.000 rpnl:-5.080\n",
      "2016-11-10 TICK WIKI/AAPL open: 111.09 close: 107.79\n",
      "2016-11-10 BUY signal\n",
      "2016-11-10 ORDER BUY WIKI/AAPL 1\n",
      "2016-11-10 POSITION value:109.880 upnl:2.090 rpnl:-5.080\n",
      "2016-11-11 TICK WIKI/AAPL open: 106.92 close: 108.43\n",
      "2016-11-11 FILLED BUY 1 WIKI/AAPL at 106.92\n",
      "2016-11-11 SELL signal\n",
      "2016-11-11 ORDER SELL WIKI/AAPL 1\n",
      "2016-11-11 POSITION value:0.000 upnl:0.000 rpnl:2.960\n",
      "2016-11-14 TICK WIKI/AAPL open: 107.32 close: 105.71\n",
      "2016-11-14 FILLED SELL 1 WIKI/AAPL at 107.32\n",
      "2016-11-14 BUY signal\n",
      "2016-11-14 ORDER BUY WIKI/AAPL 1\n",
      "2016-11-14 POSITION value:107.320 upnl:1.610 rpnl:2.960\n",
      "2016-11-15 TICK WIKI/AAPL open: 106.57 close: 107.11\n",
      "2016-11-15 FILLED BUY 1 WIKI/AAPL at 106.57\n",
      "2016-11-15 SELL signal\n",
      "2016-11-15 ORDER SELL WIKI/AAPL 1\n",
      "2016-11-15 POSITION value:0.000 upnl:0.000 rpnl:0.750\n",
      "2016-11-16 TICK WIKI/AAPL open: 106.7 close: 109.99\n",
      "2016-11-16 FILLED SELL 1 WIKI/AAPL at 106.7\n",
      "2016-11-16 POSITION value:106.700 upnl:-3.290 rpnl:0.750\n",
      "2016-11-17 TICK WIKI/AAPL open: 109.81 close: 109.95\n",
      "2016-11-17 POSITION value:106.700 upnl:-3.250 rpnl:0.750\n",
      "2016-11-18 TICK WIKI/AAPL open: 109.72 close: 110.06\n",
      "2016-11-18 POSITION value:106.700 upnl:-3.360 rpnl:0.750\n",
      "2016-11-21 TICK WIKI/AAPL open: 110.12 close: 111.73\n",
      "2016-11-21 POSITION value:106.700 upnl:-5.030 rpnl:0.750\n",
      "2016-11-22 TICK WIKI/AAPL open: 111.95 close: 111.8\n",
      "2016-11-22 POSITION value:106.700 upnl:-5.100 rpnl:0.750\n",
      "2016-11-23 TICK WIKI/AAPL open: 111.36 close: 111.23\n",
      "2016-11-23 POSITION value:106.700 upnl:-4.530 rpnl:0.750\n",
      "2016-11-25 TICK WIKI/AAPL open: 111.13 close: 111.79\n",
      "2016-11-25 POSITION value:106.700 upnl:-5.090 rpnl:0.750\n",
      "2016-11-28 TICK WIKI/AAPL open: 111.43 close: 111.57\n",
      "2016-11-28 POSITION value:106.700 upnl:-4.870 rpnl:0.750\n",
      "2016-11-29 TICK WIKI/AAPL open: 110.78 close: 111.46\n",
      "2016-11-29 POSITION value:106.700 upnl:-4.760 rpnl:0.750\n",
      "2016-11-30 TICK WIKI/AAPL open: 111.56 close: 110.52\n",
      "2016-11-30 BUY signal\n",
      "2016-11-30 ORDER BUY WIKI/AAPL 1\n",
      "2016-11-30 POSITION value:106.700 upnl:-3.820 rpnl:0.750\n",
      "2016-12-01 TICK WIKI/AAPL open: 110.365 close: 109.49\n",
      "2016-12-01 FILLED BUY 1 WIKI/AAPL at 110.365\n",
      "2016-12-01 BUY signal\n",
      "2016-12-01 ORDER BUY WIKI/AAPL 1\n",
      "2016-12-01 POSITION value:0.000 upnl:0.000 rpnl:-3.665\n",
      "2016-12-02 TICK WIKI/AAPL open: 109.17 close: 109.9\n",
      "2016-12-02 FILLED BUY 1 WIKI/AAPL at 109.17\n",
      "2016-12-02 POSITION value:-109.170 upnl:0.730 rpnl:-3.665\n",
      "2016-12-05 TICK WIKI/AAPL open: 110.0 close: 109.11\n",
      "2016-12-05 POSITION value:-109.170 upnl:-0.060 rpnl:-3.665\n",
      "2016-12-06 TICK WIKI/AAPL open: 109.5 close: 109.95\n",
      "2016-12-06 SELL signal\n",
      "2016-12-06 ORDER SELL WIKI/AAPL 1\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2016-12-06 POSITION value:-109.170 upnl:0.780 rpnl:-3.665\n",
      "2016-12-07 TICK WIKI/AAPL open: 109.26 close: 111.03\n",
      "2016-12-07 FILLED SELL 1 WIKI/AAPL at 109.26\n",
      "2016-12-07 SELL signal\n",
      "2016-12-07 ORDER SELL WIKI/AAPL 1\n",
      "2016-12-07 POSITION value:0.000 upnl:0.000 rpnl:0.090\n",
      "2016-12-08 TICK WIKI/AAPL open: 110.86 close: 112.12\n",
      "2016-12-08 FILLED SELL 1 WIKI/AAPL at 110.86\n",
      "2016-12-08 POSITION value:110.860 upnl:-1.260 rpnl:0.090\n",
      "2016-12-09 TICK WIKI/AAPL open: 112.31 close: 113.95\n",
      "2016-12-09 POSITION value:110.860 upnl:-3.090 rpnl:0.090\n",
      "2016-12-12 TICK WIKI/AAPL open: 113.29 close: 113.3\n",
      "2016-12-12 BUY signal\n",
      "2016-12-12 ORDER BUY WIKI/AAPL 1\n",
      "2016-12-12 POSITION value:110.860 upnl:-2.440 rpnl:0.090\n",
      "2016-12-13 TICK WIKI/AAPL open: 113.84 close: 115.19\n",
      "2016-12-13 FILLED BUY 1 WIKI/AAPL at 113.84\n",
      "2016-12-13 SELL signal\n",
      "2016-12-13 ORDER SELL WIKI/AAPL 1\n",
      "2016-12-13 POSITION value:0.000 upnl:0.000 rpnl:-2.980\n",
      "2016-12-14 TICK WIKI/AAPL open: 115.04 close: 115.19\n",
      "2016-12-14 FILLED SELL 1 WIKI/AAPL at 115.04\n",
      "2016-12-14 POSITION value:115.040 upnl:-0.150 rpnl:-2.980\n",
      "2016-12-15 TICK WIKI/AAPL open: 115.38 close: 115.82\n",
      "2016-12-15 POSITION value:115.040 upnl:-0.780 rpnl:-2.980\n",
      "2016-12-16 TICK WIKI/AAPL open: 116.47 close: 115.97\n",
      "2016-12-16 POSITION value:115.040 upnl:-0.930 rpnl:-2.980\n",
      "2016-12-19 TICK WIKI/AAPL open: 115.8 close: 116.64\n",
      "2016-12-19 POSITION value:115.040 upnl:-1.600 rpnl:-2.980\n",
      "2016-12-20 TICK WIKI/AAPL open: 116.74 close: 116.95\n",
      "2016-12-20 POSITION value:115.040 upnl:-1.910 rpnl:-2.980\n",
      "2016-12-21 TICK WIKI/AAPL open: 116.8 close: 117.06\n",
      "2016-12-21 POSITION value:115.040 upnl:-2.020 rpnl:-2.980\n",
      "2016-12-22 TICK WIKI/AAPL open: 116.35 close: 116.29\n",
      "2016-12-22 BUY signal\n",
      "2016-12-22 ORDER BUY WIKI/AAPL 1\n",
      "2016-12-22 POSITION value:115.040 upnl:-1.250 rpnl:-2.980\n",
      "2016-12-23 TICK WIKI/AAPL open: 115.59 close: 116.52\n",
      "2016-12-23 FILLED BUY 1 WIKI/AAPL at 115.59\n",
      "2016-12-23 POSITION value:0.000 upnl:0.000 rpnl:-0.550\n",
      "2016-12-27 TICK WIKI/AAPL open: 116.52 close: 117.26\n",
      "2016-12-27 POSITION value:0.000 upnl:0.000 rpnl:-0.550\n",
      "2016-12-28 TICK WIKI/AAPL open: 117.52 close: 116.76\n",
      "2016-12-28 BUY signal\n",
      "2016-12-28 ORDER BUY WIKI/AAPL 1\n",
      "2016-12-28 POSITION value:0.000 upnl:0.000 rpnl:-0.550\n",
      "2016-12-29 TICK WIKI/AAPL open: 116.45 close: 116.73\n",
      "2016-12-29 FILLED BUY 1 WIKI/AAPL at 116.45\n",
      "2016-12-29 POSITION value:-116.450 upnl:0.280 rpnl:-0.550\n",
      "2016-12-30 TICK WIKI/AAPL open: 116.65 close: 115.82\n",
      "2016-12-30 POSITION value:-116.450 upnl:-0.630 rpnl:-0.550\n",
      "2017-01-03 TICK WIKI/AAPL open: 115.8 close: 116.15\n",
      "2017-01-03 POSITION value:-116.450 upnl:-0.300 rpnl:-0.550\n",
      "2017-01-04 TICK WIKI/AAPL open: 115.85 close: 116.02\n",
      "2017-01-04 POSITION value:-116.450 upnl:-0.430 rpnl:-0.550\n",
      "2017-01-05 TICK WIKI/AAPL open: 115.92 close: 116.61\n",
      "2017-01-05 POSITION value:-116.450 upnl:0.160 rpnl:-0.550\n",
      "2017-01-06 TICK WIKI/AAPL open: 116.78 close: 117.91\n",
      "2017-01-06 SELL signal\n",
      "2017-01-06 ORDER SELL WIKI/AAPL 1\n",
      "2017-01-06 POSITION value:-116.450 upnl:1.460 rpnl:-0.550\n",
      "2017-01-09 TICK WIKI/AAPL open: 117.95 close: 118.99\n",
      "2017-01-09 FILLED SELL 1 WIKI/AAPL at 117.95\n",
      "2017-01-09 SELL signal\n",
      "2017-01-09 ORDER SELL WIKI/AAPL 1\n",
      "2017-01-09 POSITION value:0.000 upnl:0.000 rpnl:1.500\n",
      "2017-01-10 TICK WIKI/AAPL open: 118.77 close: 119.11\n",
      "2017-01-10 FILLED SELL 1 WIKI/AAPL at 118.77\n",
      "2017-01-10 POSITION value:118.770 upnl:-0.340 rpnl:1.500\n",
      "2017-01-11 TICK WIKI/AAPL open: 118.74 close: 119.75\n",
      "2017-01-11 POSITION value:118.770 upnl:-0.980 rpnl:1.500\n",
      "2017-01-12 TICK WIKI/AAPL open: 118.895 close: 119.25\n",
      "2017-01-12 BUY signal\n",
      "2017-01-12 ORDER BUY WIKI/AAPL 1\n",
      "2017-01-12 POSITION value:118.770 upnl:-0.480 rpnl:1.500\n",
      "2017-01-13 TICK WIKI/AAPL open: 119.11 close: 119.04\n",
      "2017-01-13 FILLED BUY 1 WIKI/AAPL at 119.11\n",
      "2017-01-13 BUY signal\n",
      "2017-01-13 ORDER BUY WIKI/AAPL 1\n",
      "2017-01-13 POSITION value:0.000 upnl:0.000 rpnl:-0.340\n",
      "2017-01-17 TICK WIKI/AAPL open: 118.34 close: 120.0\n",
      "2017-01-17 FILLED BUY 1 WIKI/AAPL at 118.34\n",
      "2017-01-17 SELL signal\n",
      "2017-01-17 ORDER SELL WIKI/AAPL 1\n",
      "2017-01-17 POSITION value:-118.340 upnl:1.660 rpnl:-0.340\n",
      "2017-01-18 TICK WIKI/AAPL open: 120.0 close: 119.99\n",
      "2017-01-18 FILLED SELL 1 WIKI/AAPL at 120.0\n",
      "2017-01-18 POSITION value:0.000 upnl:0.000 rpnl:1.660\n",
      "2017-01-19 TICK WIKI/AAPL open: 119.4 close: 119.78\n",
      "2017-01-19 BUY signal\n",
      "2017-01-19 ORDER BUY WIKI/AAPL 1\n",
      "2017-01-19 POSITION value:0.000 upnl:0.000 rpnl:1.660\n",
      "2017-01-20 TICK WIKI/AAPL open: 120.45 close: 120.0\n",
      "2017-01-20 FILLED BUY 1 WIKI/AAPL at 120.45\n",
      "2017-01-20 POSITION value:-120.450 upnl:-0.450 rpnl:1.660\n",
      "2017-01-23 TICK WIKI/AAPL open: 120.0 close: 120.08\n",
      "2017-01-23 POSITION value:-120.450 upnl:-0.370 rpnl:1.660\n",
      "2017-01-24 TICK WIKI/AAPL open: 119.55 close: 119.97\n",
      "2017-01-24 POSITION value:-120.450 upnl:-0.480 rpnl:1.660\n",
      "2017-01-25 TICK WIKI/AAPL open: 120.42 close: 121.88\n",
      "2017-01-25 SELL signal\n",
      "2017-01-25 ORDER SELL WIKI/AAPL 1\n",
      "2017-01-25 POSITION value:-120.450 upnl:1.430 rpnl:1.660\n",
      "2017-01-26 TICK WIKI/AAPL open: 121.67 close: 121.94\n",
      "2017-01-26 FILLED SELL 1 WIKI/AAPL at 121.67\n",
      "2017-01-26 POSITION value:0.000 upnl:0.000 rpnl:1.220\n",
      "2017-01-27 TICK WIKI/AAPL open: 122.14 close: 121.95\n",
      "2017-01-27 POSITION value:0.000 upnl:0.000 rpnl:1.220\n",
      "2017-01-30 TICK WIKI/AAPL open: 120.93 close: 121.63\n",
      "2017-01-30 BUY signal\n",
      "2017-01-30 ORDER BUY WIKI/AAPL 1\n",
      "2017-01-30 POSITION value:0.000 upnl:0.000 rpnl:1.220\n",
      "2017-01-31 TICK WIKI/AAPL open: 121.15 close: 121.35\n",
      "2017-01-31 FILLED BUY 1 WIKI/AAPL at 121.15\n",
      "2017-01-31 POSITION value:-121.150 upnl:0.200 rpnl:1.220\n",
      "2017-02-01 TICK WIKI/AAPL open: 127.03 close: 128.75\n",
      "2017-02-01 SELL signal\n",
      "2017-02-01 ORDER SELL WIKI/AAPL 1\n",
      "2017-02-01 POSITION value:-121.150 upnl:7.600 rpnl:1.220\n",
      "2017-02-02 TICK WIKI/AAPL open: 127.975 close: 128.53\n",
      "2017-02-02 FILLED SELL 1 WIKI/AAPL at 127.975\n",
      "2017-02-02 POSITION value:0.000 upnl:0.000 rpnl:6.825\n",
      "2017-02-03 TICK WIKI/AAPL open: 128.31 close: 129.08\n",
      "2017-02-03 POSITION value:0.000 upnl:0.000 rpnl:6.825\n",
      "2017-02-06 TICK WIKI/AAPL open: 129.13 close: 130.29\n",
      "2017-02-06 POSITION value:0.000 upnl:0.000 rpnl:6.825\n",
      "2017-02-07 TICK WIKI/AAPL open: 130.54 close: 131.53\n",
      "2017-02-07 POSITION value:0.000 upnl:0.000 rpnl:6.825\n",
      "2017-02-08 TICK WIKI/AAPL open: 131.35 close: 132.04\n",
      "2017-02-08 POSITION value:0.000 upnl:0.000 rpnl:6.825\n",
      "2017-02-09 TICK WIKI/AAPL open: 131.65 close: 132.42\n",
      "2017-02-09 POSITION value:0.000 upnl:0.000 rpnl:6.825\n",
      "2017-02-10 TICK WIKI/AAPL open: 132.46 close: 132.12\n",
      "2017-02-10 BUY signal\n",
      "2017-02-10 ORDER BUY WIKI/AAPL 1\n",
      "2017-02-10 POSITION value:0.000 upnl:0.000 rpnl:6.825\n",
      "2017-02-13 TICK WIKI/AAPL open: 133.08 close: 133.29\n",
      "2017-02-13 FILLED BUY 1 WIKI/AAPL at 133.08\n",
      "2017-02-13 POSITION value:-133.080 upnl:0.210 rpnl:6.825\n",
      "2017-02-14 TICK WIKI/AAPL open: 133.47 close: 135.02\n",
      "2017-02-14 POSITION value:-133.080 upnl:1.940 rpnl:6.825\n",
      "2017-02-15 TICK WIKI/AAPL open: 135.52 close: 135.51\n",
      "2017-02-15 POSITION value:-133.080 upnl:2.430 rpnl:6.825\n",
      "2017-02-16 TICK WIKI/AAPL open: 135.67 close: 135.345\n",
      "2017-02-16 POSITION value:-133.080 upnl:2.265 rpnl:6.825\n",
      "2017-02-17 TICK WIKI/AAPL open: 135.1 close: 135.72\n",
      "2017-02-17 POSITION value:-133.080 upnl:2.640 rpnl:6.825\n",
      "2017-02-21 TICK WIKI/AAPL open: 136.23 close: 136.7\n",
      "2017-02-21 POSITION value:-133.080 upnl:3.620 rpnl:6.825\n",
      "2017-02-22 TICK WIKI/AAPL open: 136.43 close: 137.11\n",
      "2017-02-22 POSITION value:-133.080 upnl:4.030 rpnl:6.825\n",
      "2017-02-23 TICK WIKI/AAPL open: 137.38 close: 136.53\n",
      "2017-02-23 POSITION value:-133.080 upnl:3.450 rpnl:6.825\n",
      "2017-02-24 TICK WIKI/AAPL open: 135.91 close: 136.66\n",
      "2017-02-24 POSITION value:-133.080 upnl:3.580 rpnl:6.825\n",
      "2017-02-27 TICK WIKI/AAPL open: 137.14 close: 136.93\n",
      "2017-02-27 POSITION value:-133.080 upnl:3.850 rpnl:6.825\n",
      "2017-02-28 TICK WIKI/AAPL open: 137.08 close: 136.99\n",
      "2017-02-28 POSITION value:-133.080 upnl:3.910 rpnl:6.825\n",
      "2017-03-01 TICK WIKI/AAPL open: 137.89 close: 139.79\n",
      "2017-03-01 SELL signal\n",
      "2017-03-01 ORDER SELL WIKI/AAPL 1\n",
      "2017-03-01 POSITION value:-133.080 upnl:6.710 rpnl:6.825\n",
      "2017-03-02 TICK WIKI/AAPL open: 140.0 close: 138.96\n",
      "2017-03-02 FILLED SELL 1 WIKI/AAPL at 140.0\n",
      "2017-03-02 BUY signal\n",
      "2017-03-02 ORDER BUY WIKI/AAPL 1\n",
      "2017-03-02 POSITION value:0.000 upnl:0.000 rpnl:6.920\n",
      "2017-03-03 TICK WIKI/AAPL open: 138.78 close: 139.78\n",
      "2017-03-03 FILLED BUY 1 WIKI/AAPL at 138.78\n",
      "2017-03-03 POSITION value:-138.780 upnl:1.000 rpnl:6.920\n",
      "2017-03-06 TICK WIKI/AAPL open: 139.365 close: 139.34\n",
      "2017-03-06 POSITION value:-138.780 upnl:0.560 rpnl:6.920\n",
      "2017-03-07 TICK WIKI/AAPL open: 139.06 close: 139.52\n",
      "2017-03-07 POSITION value:-138.780 upnl:0.740 rpnl:6.920\n",
      "2017-03-08 TICK WIKI/AAPL open: 138.95 close: 139.0\n",
      "2017-03-08 POSITION value:-138.780 upnl:0.220 rpnl:6.920\n",
      "2017-03-09 TICK WIKI/AAPL open: 138.74 close: 138.68\n",
      "2017-03-09 POSITION value:-138.780 upnl:-0.100 rpnl:6.920\n",
      "2017-03-10 TICK WIKI/AAPL open: 139.25 close: 139.14\n",
      "2017-03-10 POSITION value:-138.780 upnl:0.360 rpnl:6.920\n",
      "2017-03-13 TICK WIKI/AAPL open: 138.85 close: 139.2\n",
      "2017-03-13 POSITION value:-138.780 upnl:0.420 rpnl:6.920\n",
      "2017-03-14 TICK WIKI/AAPL open: 139.3 close: 138.99\n",
      "2017-03-14 POSITION value:-138.780 upnl:0.210 rpnl:6.920\n",
      "2017-03-15 TICK WIKI/AAPL open: 139.41 close: 140.46\n",
      "2017-03-15 SELL signal\n",
      "2017-03-15 ORDER SELL WIKI/AAPL 1\n",
      "2017-03-15 POSITION value:-138.780 upnl:1.680 rpnl:6.920\n",
      "2017-03-16 TICK WIKI/AAPL open: 140.72 close: 140.69\n",
      "2017-03-16 FILLED SELL 1 WIKI/AAPL at 140.72\n",
      "2017-03-16 POSITION value:0.000 upnl:0.000 rpnl:1.940\n",
      "2017-03-17 TICK WIKI/AAPL open: 141.0 close: 139.99\n",
      "2017-03-17 BUY signal\n",
      "2017-03-17 ORDER BUY WIKI/AAPL 1\n",
      "2017-03-17 POSITION value:0.000 upnl:0.000 rpnl:1.940\n",
      "2017-03-20 TICK WIKI/AAPL open: 140.4 close: 141.46\n",
      "2017-03-20 FILLED BUY 1 WIKI/AAPL at 140.4\n",
      "2017-03-20 SELL signal\n",
      "2017-03-20 ORDER SELL WIKI/AAPL 1\n",
      "2017-03-20 POSITION value:-140.400 upnl:1.060 rpnl:1.940\n",
      "2017-03-21 TICK WIKI/AAPL open: 142.11 close: 139.84\n",
      "2017-03-21 FILLED SELL 1 WIKI/AAPL at 142.11\n",
      "2017-03-21 BUY signal\n",
      "2017-03-21 ORDER BUY WIKI/AAPL 1\n",
      "2017-03-21 POSITION value:0.000 upnl:0.000 rpnl:1.710\n",
      "2017-03-22 TICK WIKI/AAPL open: 139.845 close: 141.42\n",
      "2017-03-22 FILLED BUY 1 WIKI/AAPL at 139.845\n",
      "2017-03-22 SELL signal\n",
      "2017-03-22 ORDER SELL WIKI/AAPL 1\n",
      "2017-03-22 POSITION value:-139.845 upnl:1.575 rpnl:1.710\n",
      "2017-03-23 TICK WIKI/AAPL open: 141.26 close: 140.92\n",
      "2017-03-23 FILLED SELL 1 WIKI/AAPL at 141.26\n",
      "2017-03-23 BUY signal\n",
      "2017-03-23 ORDER BUY WIKI/AAPL 1\n",
      "2017-03-23 POSITION value:0.000 upnl:0.000 rpnl:1.415\n",
      "2017-03-24 TICK WIKI/AAPL open: 141.5 close: 140.64\n",
      "2017-03-24 FILLED BUY 1 WIKI/AAPL at 141.5\n",
      "2017-03-24 POSITION value:-141.500 upnl:-0.860 rpnl:1.415\n",
      "2017-03-27 TICK WIKI/AAPL open: 139.39 close: 140.88\n",
      "2017-03-27 POSITION value:-141.500 upnl:-0.620 rpnl:1.415\n",
      "2017-03-28 TICK WIKI/AAPL open: 140.91 close: 143.8\n",
      "2017-03-28 SELL signal\n",
      "2017-03-28 ORDER SELL WIKI/AAPL 1\n",
      "2017-03-28 POSITION value:-141.500 upnl:2.300 rpnl:1.415\n",
      "2017-03-29 TICK WIKI/AAPL open: 143.68 close: 144.12\n",
      "2017-03-29 FILLED SELL 1 WIKI/AAPL at 143.68\n",
      "2017-03-29 POSITION value:0.000 upnl:0.000 rpnl:2.180\n",
      "2017-03-30 TICK WIKI/AAPL open: 144.19 close: 143.93\n",
      "2017-03-30 POSITION value:0.000 upnl:0.000 rpnl:2.180\n",
      "2017-03-31 TICK WIKI/AAPL open: 143.72 close: 143.66\n",
      "2017-03-31 POSITION value:0.000 upnl:0.000 rpnl:2.180\n",
      "2017-04-03 TICK WIKI/AAPL open: 143.71 close: 143.7\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2017-04-03 POSITION value:0.000 upnl:0.000 rpnl:2.180\n",
      "2017-04-04 TICK WIKI/AAPL open: 143.25 close: 144.77\n",
      "2017-04-04 SELL signal\n",
      "2017-04-04 ORDER SELL WIKI/AAPL 1\n",
      "2017-04-04 POSITION value:0.000 upnl:0.000 rpnl:2.180\n",
      "2017-04-05 TICK WIKI/AAPL open: 144.22 close: 144.02\n",
      "2017-04-05 FILLED SELL 1 WIKI/AAPL at 144.22\n",
      "2017-04-05 BUY signal\n",
      "2017-04-05 ORDER BUY WIKI/AAPL 1\n",
      "2017-04-05 POSITION value:144.220 upnl:0.200 rpnl:2.180\n",
      "2017-04-06 TICK WIKI/AAPL open: 144.29 close: 143.66\n",
      "2017-04-06 FILLED BUY 1 WIKI/AAPL at 144.29\n",
      "2017-04-06 BUY signal\n",
      "2017-04-06 ORDER BUY WIKI/AAPL 1\n",
      "2017-04-06 POSITION value:0.000 upnl:0.000 rpnl:-0.070\n",
      "2017-04-07 TICK WIKI/AAPL open: 143.73 close: 143.34\n",
      "2017-04-07 FILLED BUY 1 WIKI/AAPL at 143.73\n",
      "2017-04-07 POSITION value:-143.730 upnl:-0.390 rpnl:-0.070\n",
      "2017-04-10 TICK WIKI/AAPL open: 143.6 close: 143.17\n",
      "2017-04-10 POSITION value:-143.730 upnl:-0.560 rpnl:-0.070\n",
      "2017-04-11 TICK WIKI/AAPL open: 142.94 close: 141.63\n",
      "2017-04-11 POSITION value:-143.730 upnl:-2.100 rpnl:-0.070\n",
      "2017-04-12 TICK WIKI/AAPL open: 141.6 close: 141.8\n",
      "2017-04-12 POSITION value:-143.730 upnl:-1.930 rpnl:-0.070\n",
      "2017-04-13 TICK WIKI/AAPL open: 141.91 close: 141.05\n",
      "2017-04-13 POSITION value:-143.730 upnl:-2.680 rpnl:-0.070\n",
      "2017-04-17 TICK WIKI/AAPL open: 141.48 close: 141.83\n",
      "2017-04-17 SELL signal\n",
      "2017-04-17 ORDER SELL WIKI/AAPL 1\n",
      "2017-04-17 POSITION value:-143.730 upnl:-1.900 rpnl:-0.070\n",
      "2017-04-18 TICK WIKI/AAPL open: 141.41 close: 141.2\n",
      "2017-04-18 FILLED SELL 1 WIKI/AAPL at 141.41\n",
      "2017-04-18 BUY signal\n",
      "2017-04-18 ORDER BUY WIKI/AAPL 1\n",
      "2017-04-18 POSITION value:0.000 upnl:0.000 rpnl:-2.320\n",
      "2017-04-19 TICK WIKI/AAPL open: 141.88 close: 140.68\n",
      "2017-04-19 FILLED BUY 1 WIKI/AAPL at 141.88\n",
      "2017-04-19 POSITION value:-141.880 upnl:-1.200 rpnl:-2.320\n",
      "2017-04-20 TICK WIKI/AAPL open: 141.22 close: 142.44\n",
      "2017-04-20 SELL signal\n",
      "2017-04-20 ORDER SELL WIKI/AAPL 1\n",
      "2017-04-20 POSITION value:-141.880 upnl:0.560 rpnl:-2.320\n",
      "2017-04-21 TICK WIKI/AAPL open: 142.44 close: 142.27\n",
      "2017-04-21 FILLED SELL 1 WIKI/AAPL at 142.44\n",
      "2017-04-21 POSITION value:0.000 upnl:0.000 rpnl:0.560\n",
      "2017-04-24 TICK WIKI/AAPL open: 143.5 close: 143.64\n",
      "2017-04-24 SELL signal\n",
      "2017-04-24 ORDER SELL WIKI/AAPL 1\n",
      "2017-04-24 POSITION value:0.000 upnl:0.000 rpnl:0.560\n",
      "2017-04-25 TICK WIKI/AAPL open: 143.91 close: 144.54\n",
      "2017-04-25 FILLED SELL 1 WIKI/AAPL at 143.91\n",
      "2017-04-25 POSITION value:143.910 upnl:-0.630 rpnl:0.560\n",
      "2017-04-26 TICK WIKI/AAPL open: 144.47 close: 143.6508\n",
      "2017-04-26 BUY signal\n",
      "2017-04-26 ORDER BUY WIKI/AAPL 1\n",
      "2017-04-26 POSITION value:143.910 upnl:0.259 rpnl:0.560\n",
      "2017-04-27 TICK WIKI/AAPL open: 143.9225 close: 143.79\n",
      "2017-04-27 FILLED BUY 1 WIKI/AAPL at 143.9225\n",
      "2017-04-27 POSITION value:0.000 upnl:0.000 rpnl:-0.013\n",
      "2017-04-28 TICK WIKI/AAPL open: 144.09 close: 143.65\n",
      "2017-04-28 POSITION value:0.000 upnl:0.000 rpnl:-0.013\n",
      "2017-05-01 TICK WIKI/AAPL open: 145.1 close: 146.6\n",
      "2017-05-01 SELL signal\n",
      "2017-05-01 ORDER SELL WIKI/AAPL 1\n",
      "2017-05-01 POSITION value:0.000 upnl:0.000 rpnl:-0.013\n",
      "2017-05-02 TICK WIKI/AAPL open: 147.54 close: 147.51\n",
      "2017-05-02 FILLED SELL 1 WIKI/AAPL at 147.54\n",
      "2017-05-02 POSITION value:147.540 upnl:0.030 rpnl:-0.013\n",
      "2017-05-03 TICK WIKI/AAPL open: 145.59 close: 147.06\n",
      "2017-05-03 BUY signal\n",
      "2017-05-03 ORDER BUY WIKI/AAPL 1\n",
      "2017-05-03 POSITION value:147.540 upnl:0.480 rpnl:-0.013\n",
      "2017-05-04 TICK WIKI/AAPL open: 146.52 close: 146.53\n",
      "2017-05-04 FILLED BUY 1 WIKI/AAPL at 146.52\n",
      "2017-05-04 BUY signal\n",
      "2017-05-04 ORDER BUY WIKI/AAPL 1\n",
      "2017-05-04 POSITION value:0.000 upnl:0.000 rpnl:1.020\n",
      "2017-05-05 TICK WIKI/AAPL open: 146.76 close: 148.96\n",
      "2017-05-05 FILLED BUY 1 WIKI/AAPL at 146.76\n",
      "2017-05-05 SELL signal\n",
      "2017-05-05 ORDER SELL WIKI/AAPL 1\n",
      "2017-05-05 POSITION value:-146.760 upnl:2.200 rpnl:1.020\n",
      "2017-05-08 TICK WIKI/AAPL open: 149.03 close: 153.0\n",
      "2017-05-08 FILLED SELL 1 WIKI/AAPL at 149.03\n",
      "2017-05-08 SELL signal\n",
      "2017-05-08 ORDER SELL WIKI/AAPL 1\n",
      "2017-05-08 POSITION value:0.000 upnl:0.000 rpnl:2.270\n",
      "2017-05-09 TICK WIKI/AAPL open: 153.87 close: 153.96\n",
      "2017-05-09 FILLED SELL 1 WIKI/AAPL at 153.87\n",
      "2017-05-09 POSITION value:153.870 upnl:-0.090 rpnl:2.270\n",
      "2017-05-10 TICK WIKI/AAPL open: 153.63 close: 153.26\n",
      "2017-05-10 BUY signal\n",
      "2017-05-10 ORDER BUY WIKI/AAPL 1\n",
      "2017-05-10 POSITION value:153.870 upnl:0.610 rpnl:2.270\n",
      "2017-05-11 TICK WIKI/AAPL open: 152.45 close: 153.95\n",
      "2017-05-11 FILLED BUY 1 WIKI/AAPL at 152.45\n",
      "2017-05-11 POSITION value:0.000 upnl:0.000 rpnl:1.420\n",
      "2017-05-12 TICK WIKI/AAPL open: 154.7 close: 156.1\n",
      "2017-05-12 SELL signal\n",
      "2017-05-12 ORDER SELL WIKI/AAPL 1\n",
      "2017-05-12 POSITION value:0.000 upnl:0.000 rpnl:1.420\n",
      "2017-05-15 TICK WIKI/AAPL open: 156.01 close: 155.7\n",
      "2017-05-15 FILLED SELL 1 WIKI/AAPL at 156.01\n",
      "2017-05-15 BUY signal\n",
      "2017-05-15 ORDER BUY WIKI/AAPL 1\n",
      "2017-05-15 POSITION value:156.010 upnl:0.310 rpnl:1.420\n",
      "2017-05-16 TICK WIKI/AAPL open: 155.94 close: 155.47\n",
      "2017-05-16 FILLED BUY 1 WIKI/AAPL at 155.94\n",
      "2017-05-16 BUY signal\n",
      "2017-05-16 ORDER BUY WIKI/AAPL 1\n",
      "2017-05-16 POSITION value:0.000 upnl:0.000 rpnl:0.070\n",
      "2017-05-17 TICK WIKI/AAPL open: 153.6 close: 150.25\n",
      "2017-05-17 FILLED BUY 1 WIKI/AAPL at 153.6\n",
      "2017-05-17 POSITION value:-153.600 upnl:-3.350 rpnl:0.070\n",
      "2017-05-18 TICK WIKI/AAPL open: 151.27 close: 152.54\n",
      "2017-05-18 SELL signal\n",
      "2017-05-18 ORDER SELL WIKI/AAPL 1\n",
      "2017-05-18 POSITION value:-153.600 upnl:-1.060 rpnl:0.070\n",
      "2017-05-19 TICK WIKI/AAPL open: 153.38 close: 152.96\n",
      "2017-05-19 FILLED SELL 1 WIKI/AAPL at 153.38\n",
      "2017-05-19 POSITION value:0.000 upnl:0.000 rpnl:-0.220\n",
      "2017-05-22 TICK WIKI/AAPL open: 154.0 close: 153.99\n",
      "2017-05-22 POSITION value:0.000 upnl:0.000 rpnl:-0.220\n",
      "2017-05-23 TICK WIKI/AAPL open: 154.9 close: 153.8\n",
      "2017-05-23 POSITION value:0.000 upnl:0.000 rpnl:-0.220\n",
      "2017-05-24 TICK WIKI/AAPL open: 153.84 close: 153.34\n",
      "2017-05-24 BUY signal\n",
      "2017-05-24 ORDER BUY WIKI/AAPL 1\n",
      "2017-05-24 POSITION value:0.000 upnl:0.000 rpnl:-0.220\n",
      "2017-05-25 TICK WIKI/AAPL open: 153.73 close: 153.87\n",
      "2017-05-25 FILLED BUY 1 WIKI/AAPL at 153.73\n",
      "2017-05-25 POSITION value:-153.730 upnl:0.140 rpnl:-0.220\n",
      "2017-05-26 TICK WIKI/AAPL open: 154.0 close: 153.61\n",
      "2017-05-26 POSITION value:-153.730 upnl:-0.120 rpnl:-0.220\n",
      "2017-05-30 TICK WIKI/AAPL open: 153.42 close: 153.67\n",
      "2017-05-30 POSITION value:-153.730 upnl:-0.060 rpnl:-0.220\n",
      "2017-05-31 TICK WIKI/AAPL open: 153.97 close: 152.76\n",
      "2017-05-31 POSITION value:-153.730 upnl:-0.970 rpnl:-0.220\n",
      "2017-06-01 TICK WIKI/AAPL open: 153.17 close: 153.18\n",
      "2017-06-01 POSITION value:-153.730 upnl:-0.550 rpnl:-0.220\n",
      "2017-06-02 TICK WIKI/AAPL open: 153.58 close: 155.45\n",
      "2017-06-02 SELL signal\n",
      "2017-06-02 ORDER SELL WIKI/AAPL 1\n",
      "2017-06-02 POSITION value:-153.730 upnl:1.720 rpnl:-0.220\n",
      "2017-06-05 TICK WIKI/AAPL open: 154.34 close: 153.93\n",
      "2017-06-05 FILLED SELL 1 WIKI/AAPL at 154.34\n",
      "2017-06-05 BUY signal\n",
      "2017-06-05 ORDER BUY WIKI/AAPL 1\n",
      "2017-06-05 POSITION value:0.000 upnl:0.000 rpnl:0.610\n",
      "2017-06-06 TICK WIKI/AAPL open: 153.9 close: 154.45\n",
      "2017-06-06 FILLED BUY 1 WIKI/AAPL at 153.9\n",
      "2017-06-06 POSITION value:-153.900 upnl:0.550 rpnl:0.610\n",
      "2017-06-07 TICK WIKI/AAPL open: 155.02 close: 155.37\n",
      "2017-06-07 POSITION value:-153.900 upnl:1.470 rpnl:0.610\n",
      "2017-06-08 TICK WIKI/AAPL open: 155.25 close: 154.99\n",
      "2017-06-08 POSITION value:-153.900 upnl:1.090 rpnl:0.610\n",
      "2017-06-09 TICK WIKI/AAPL open: 155.19 close: 148.98\n",
      "2017-06-09 POSITION value:-153.900 upnl:-4.920 rpnl:0.610\n",
      "2017-06-12 TICK WIKI/AAPL open: 145.74 close: 145.32\n",
      "2017-06-12 POSITION value:-153.900 upnl:-8.580 rpnl:0.610\n",
      "2017-06-13 TICK WIKI/AAPL open: 147.16 close: 146.59\n",
      "2017-06-13 SELL signal\n",
      "2017-06-13 ORDER SELL WIKI/AAPL 1\n",
      "2017-06-13 POSITION value:-153.900 upnl:-7.310 rpnl:0.610\n",
      "2017-06-14 TICK WIKI/AAPL open: 147.5 close: 145.16\n",
      "2017-06-14 FILLED SELL 1 WIKI/AAPL at 147.5\n",
      "2017-06-14 BUY signal\n",
      "2017-06-14 ORDER BUY WIKI/AAPL 1\n",
      "2017-06-14 POSITION value:0.000 upnl:0.000 rpnl:-6.400\n",
      "2017-06-15 TICK WIKI/AAPL open: 143.32 close: 144.29\n",
      "2017-06-15 FILLED BUY 1 WIKI/AAPL at 143.32\n",
      "2017-06-15 POSITION value:-143.320 upnl:0.970 rpnl:-6.400\n",
      "2017-06-16 TICK WIKI/AAPL open: 143.78 close: 142.27\n",
      "2017-06-16 POSITION value:-143.320 upnl:-1.050 rpnl:-6.400\n",
      "2017-06-19 TICK WIKI/AAPL open: 143.66 close: 146.34\n",
      "2017-06-19 SELL signal\n",
      "2017-06-19 ORDER SELL WIKI/AAPL 1\n",
      "2017-06-19 POSITION value:-143.320 upnl:3.020 rpnl:-6.400\n",
      "2017-06-20 TICK WIKI/AAPL open: 146.87 close: 145.01\n",
      "2017-06-20 FILLED SELL 1 WIKI/AAPL at 146.87\n",
      "2017-06-20 POSITION value:0.000 upnl:0.000 rpnl:3.550\n",
      "2017-06-21 TICK WIKI/AAPL open: 145.52 close: 145.87\n",
      "2017-06-21 SELL signal\n",
      "2017-06-21 ORDER SELL WIKI/AAPL 1\n",
      "2017-06-21 POSITION value:0.000 upnl:0.000 rpnl:3.550\n",
      "2017-06-22 TICK WIKI/AAPL open: 145.77 close: 145.63\n",
      "2017-06-22 FILLED SELL 1 WIKI/AAPL at 145.77\n",
      "2017-06-22 POSITION value:145.770 upnl:0.140 rpnl:3.550\n",
      "2017-06-23 TICK WIKI/AAPL open: 145.13 close: 146.35\n",
      "2017-06-23 POSITION value:145.770 upnl:-0.580 rpnl:3.550\n",
      "2017-06-26 TICK WIKI/AAPL open: 147.17 close: 145.82\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2017-06-26 POSITION value:145.770 upnl:-0.050 rpnl:3.550\n",
      "2017-06-27 TICK WIKI/AAPL open: 145.01 close: 143.74\n",
      "2017-06-27 BUY signal\n",
      "2017-06-27 ORDER BUY WIKI/AAPL 1\n",
      "2017-06-27 POSITION value:145.770 upnl:2.030 rpnl:3.550\n",
      "2017-06-28 TICK WIKI/AAPL open: 144.49 close: 145.83\n",
      "2017-06-28 FILLED BUY 1 WIKI/AAPL at 144.49\n",
      "2017-06-28 SELL signal\n",
      "2017-06-28 ORDER SELL WIKI/AAPL 1\n",
      "2017-06-28 POSITION value:0.000 upnl:0.000 rpnl:1.280\n",
      "2017-06-29 TICK WIKI/AAPL open: 144.71 close: 143.68\n",
      "2017-06-29 FILLED SELL 1 WIKI/AAPL at 144.71\n",
      "2017-06-29 BUY signal\n",
      "2017-06-29 ORDER BUY WIKI/AAPL 1\n",
      "2017-06-29 POSITION value:144.710 upnl:1.030 rpnl:1.280\n",
      "2017-06-30 TICK WIKI/AAPL open: 144.45 close: 144.02\n",
      "2017-06-30 FILLED BUY 1 WIKI/AAPL at 144.45\n",
      "2017-06-30 POSITION value:0.000 upnl:0.000 rpnl:0.260\n",
      "2017-07-03 TICK WIKI/AAPL open: 144.88 close: 143.5\n",
      "2017-07-03 POSITION value:0.000 upnl:0.000 rpnl:0.260\n",
      "2017-07-05 TICK WIKI/AAPL open: 143.69 close: 144.09\n",
      "2017-07-05 SELL signal\n",
      "2017-07-05 ORDER SELL WIKI/AAPL 1\n",
      "2017-07-05 POSITION value:0.000 upnl:0.000 rpnl:0.260\n",
      "2017-07-06 TICK WIKI/AAPL open: 143.02 close: 142.73\n",
      "2017-07-06 FILLED SELL 1 WIKI/AAPL at 143.02\n",
      "2017-07-06 POSITION value:143.020 upnl:0.290 rpnl:0.260\n",
      "2017-07-07 TICK WIKI/AAPL open: 142.9 close: 144.18\n",
      "2017-07-07 POSITION value:143.020 upnl:-1.160 rpnl:0.260\n",
      "2017-07-10 TICK WIKI/AAPL open: 144.11 close: 145.06\n",
      "2017-07-10 POSITION value:143.020 upnl:-2.040 rpnl:0.260\n",
      "2017-07-11 TICK WIKI/AAPL open: 144.73 close: 145.53\n",
      "2017-07-11 POSITION value:143.020 upnl:-2.510 rpnl:0.260\n",
      "2017-07-12 TICK WIKI/AAPL open: 145.87 close: 145.74\n",
      "2017-07-12 POSITION value:143.020 upnl:-2.720 rpnl:0.260\n",
      "2017-07-13 TICK WIKI/AAPL open: 145.5 close: 147.77\n",
      "2017-07-13 POSITION value:143.020 upnl:-4.750 rpnl:0.260\n",
      "2017-07-14 TICK WIKI/AAPL open: 147.97 close: 149.04\n",
      "2017-07-14 POSITION value:143.020 upnl:-6.020 rpnl:0.260\n",
      "2017-07-17 TICK WIKI/AAPL open: 148.82 close: 149.56\n",
      "2017-07-17 POSITION value:143.020 upnl:-6.540 rpnl:0.260\n",
      "2017-07-18 TICK WIKI/AAPL open: 149.2 close: 150.08\n",
      "2017-07-18 POSITION value:143.020 upnl:-7.060 rpnl:0.260\n",
      "2017-07-19 TICK WIKI/AAPL open: 150.48 close: 151.02\n",
      "2017-07-19 POSITION value:143.020 upnl:-8.000 rpnl:0.260\n",
      "2017-07-20 TICK WIKI/AAPL open: 151.5 close: 150.34\n",
      "2017-07-20 BUY signal\n",
      "2017-07-20 ORDER BUY WIKI/AAPL 1\n",
      "2017-07-20 POSITION value:143.020 upnl:-7.320 rpnl:0.260\n",
      "2017-07-21 TICK WIKI/AAPL open: 149.99 close: 150.27\n",
      "2017-07-21 FILLED BUY 1 WIKI/AAPL at 149.99\n",
      "2017-07-21 POSITION value:0.000 upnl:0.000 rpnl:-6.970\n",
      "2017-07-24 TICK WIKI/AAPL open: 150.58 close: 152.09\n",
      "2017-07-24 SELL signal\n",
      "2017-07-24 ORDER SELL WIKI/AAPL 1\n",
      "2017-07-24 POSITION value:0.000 upnl:0.000 rpnl:-6.970\n",
      "2017-07-25 TICK WIKI/AAPL open: 151.8 close: 152.74\n",
      "2017-07-25 FILLED SELL 1 WIKI/AAPL at 151.8\n",
      "2017-07-25 POSITION value:151.800 upnl:-0.940 rpnl:-6.970\n",
      "2017-07-26 TICK WIKI/AAPL open: 153.35 close: 153.46\n",
      "2017-07-26 POSITION value:151.800 upnl:-1.660 rpnl:-6.970\n",
      "2017-07-27 TICK WIKI/AAPL open: 153.75 close: 150.56\n",
      "2017-07-27 BUY signal\n",
      "2017-07-27 ORDER BUY WIKI/AAPL 1\n",
      "2017-07-27 POSITION value:151.800 upnl:1.240 rpnl:-6.970\n",
      "2017-07-28 TICK WIKI/AAPL open: 149.89 close: 149.5\n",
      "2017-07-28 FILLED BUY 1 WIKI/AAPL at 149.89\n",
      "2017-07-28 BUY signal\n",
      "2017-07-28 ORDER BUY WIKI/AAPL 1\n",
      "2017-07-28 POSITION value:0.000 upnl:0.000 rpnl:1.910\n",
      "2017-07-31 TICK WIKI/AAPL open: 149.9 close: 148.85\n",
      "2017-07-31 FILLED BUY 1 WIKI/AAPL at 149.9\n",
      "2017-07-31 POSITION value:-149.900 upnl:-1.050 rpnl:1.910\n",
      "2017-08-01 TICK WIKI/AAPL open: 149.1 close: 150.05\n",
      "2017-08-01 SELL signal\n",
      "2017-08-01 ORDER SELL WIKI/AAPL 1\n",
      "2017-08-01 POSITION value:-149.900 upnl:0.150 rpnl:1.910\n",
      "2017-08-02 TICK WIKI/AAPL open: 159.28 close: 157.14\n",
      "2017-08-02 FILLED SELL 1 WIKI/AAPL at 159.28\n",
      "2017-08-02 SELL signal\n",
      "2017-08-02 ORDER SELL WIKI/AAPL 1\n",
      "2017-08-02 POSITION value:0.000 upnl:0.000 rpnl:9.380\n",
      "2017-08-03 TICK WIKI/AAPL open: 157.05 close: 155.57\n",
      "2017-08-03 FILLED SELL 1 WIKI/AAPL at 157.05\n",
      "2017-08-03 BUY signal\n",
      "2017-08-03 ORDER BUY WIKI/AAPL 1\n",
      "2017-08-03 POSITION value:157.050 upnl:1.480 rpnl:9.380\n",
      "2017-08-04 TICK WIKI/AAPL open: 156.07 close: 156.39\n",
      "2017-08-04 FILLED BUY 1 WIKI/AAPL at 156.07\n",
      "2017-08-04 POSITION value:0.000 upnl:0.000 rpnl:0.980\n",
      "2017-08-08 TICK WIKI/AAPL open: 158.6 close: 160.08\n",
      "2017-08-08 SELL signal\n",
      "2017-08-08 ORDER SELL WIKI/AAPL 1\n",
      "2017-08-08 POSITION value:0.000 upnl:0.000 rpnl:0.980\n",
      "2017-08-09 TICK WIKI/AAPL open: 159.26 close: 161.06\n",
      "2017-08-09 FILLED SELL 1 WIKI/AAPL at 159.26\n",
      "2017-08-09 POSITION value:159.260 upnl:-1.800 rpnl:0.980\n",
      "2017-08-10 TICK WIKI/AAPL open: 159.9 close: 155.27\n",
      "2017-08-10 BUY signal\n",
      "2017-08-10 ORDER BUY WIKI/AAPL 1\n",
      "2017-08-10 POSITION value:159.260 upnl:3.990 rpnl:0.980\n",
      "2017-08-11 TICK WIKI/AAPL open: 156.6 close: 157.48\n",
      "2017-08-11 FILLED BUY 1 WIKI/AAPL at 156.6\n",
      "2017-08-11 SELL signal\n",
      "2017-08-11 ORDER SELL WIKI/AAPL 1\n",
      "2017-08-11 POSITION value:0.000 upnl:0.000 rpnl:2.660\n",
      "2017-08-14 TICK WIKI/AAPL open: 159.32 close: 159.85\n",
      "2017-08-14 FILLED SELL 1 WIKI/AAPL at 159.32\n",
      "2017-08-14 POSITION value:159.320 upnl:-0.530 rpnl:2.660\n",
      "2017-08-15 TICK WIKI/AAPL open: 160.66 close: 161.6\n",
      "2017-08-15 POSITION value:159.320 upnl:-2.280 rpnl:2.660\n",
      "2017-08-16 TICK WIKI/AAPL open: 161.94 close: 160.95\n",
      "2017-08-16 POSITION value:159.320 upnl:-1.630 rpnl:2.660\n",
      "2017-08-17 TICK WIKI/AAPL open: 160.52 close: 157.87\n",
      "2017-08-17 BUY signal\n",
      "2017-08-17 ORDER BUY WIKI/AAPL 1\n",
      "2017-08-17 POSITION value:159.320 upnl:1.450 rpnl:2.660\n",
      "2017-08-18 TICK WIKI/AAPL open: 157.86 close: 157.5\n",
      "2017-08-18 FILLED BUY 1 WIKI/AAPL at 157.86\n",
      "2017-08-18 POSITION value:0.000 upnl:0.000 rpnl:1.460\n",
      "2017-08-21 TICK WIKI/AAPL open: 157.5 close: 157.21\n",
      "2017-08-21 POSITION value:0.000 upnl:0.000 rpnl:1.460\n",
      "2017-08-22 TICK WIKI/AAPL open: 158.23 close: 159.78\n",
      "2017-08-22 SELL signal\n",
      "2017-08-22 ORDER SELL WIKI/AAPL 1\n",
      "2017-08-22 POSITION value:0.000 upnl:0.000 rpnl:1.460\n",
      "2017-08-23 TICK WIKI/AAPL open: 159.07 close: 159.98\n",
      "2017-08-23 FILLED SELL 1 WIKI/AAPL at 159.07\n",
      "2017-08-23 POSITION value:159.070 upnl:-0.910 rpnl:1.460\n",
      "2017-08-24 TICK WIKI/AAPL open: 160.43 close: 159.27\n",
      "2017-08-24 POSITION value:159.070 upnl:-0.200 rpnl:1.460\n",
      "2017-08-25 TICK WIKI/AAPL open: 159.65 close: 159.86\n",
      "2017-08-25 POSITION value:159.070 upnl:-0.790 rpnl:1.460\n",
      "2017-08-28 TICK WIKI/AAPL open: 160.14 close: 161.47\n",
      "2017-08-28 POSITION value:159.070 upnl:-2.400 rpnl:1.460\n",
      "2017-08-29 TICK WIKI/AAPL open: 160.1 close: 162.91\n",
      "2017-08-29 POSITION value:159.070 upnl:-3.840 rpnl:1.460\n",
      "2017-08-30 TICK WIKI/AAPL open: 163.8 close: 163.35\n",
      "2017-08-30 POSITION value:159.070 upnl:-4.280 rpnl:1.460\n",
      "2017-08-31 TICK WIKI/AAPL open: 163.64 close: 164.0\n",
      "2017-08-31 POSITION value:159.070 upnl:-4.930 rpnl:1.460\n",
      "2017-09-01 TICK WIKI/AAPL open: 164.8 close: 164.05\n",
      "2017-09-01 POSITION value:159.070 upnl:-4.980 rpnl:1.460\n",
      "2017-09-05 TICK WIKI/AAPL open: 163.75 close: 162.08\n",
      "2017-09-05 BUY signal\n",
      "2017-09-05 ORDER BUY WIKI/AAPL 1\n",
      "2017-09-05 POSITION value:159.070 upnl:-3.010 rpnl:1.460\n",
      "2017-09-06 TICK WIKI/AAPL open: 162.71 close: 161.91\n",
      "2017-09-06 FILLED BUY 1 WIKI/AAPL at 162.71\n",
      "2017-09-06 POSITION value:0.000 upnl:0.000 rpnl:-3.640\n",
      "2017-09-07 TICK WIKI/AAPL open: 162.09 close: 161.26\n",
      "2017-09-07 BUY signal\n",
      "2017-09-07 ORDER BUY WIKI/AAPL 1\n",
      "2017-09-07 POSITION value:0.000 upnl:0.000 rpnl:-3.640\n",
      "2017-09-08 TICK WIKI/AAPL open: 160.86 close: 158.63\n",
      "2017-09-08 FILLED BUY 1 WIKI/AAPL at 160.86\n",
      "2017-09-08 POSITION value:-160.860 upnl:-2.230 rpnl:-3.640\n",
      "2017-09-11 TICK WIKI/AAPL open: 160.5 close: 161.5\n",
      "2017-09-11 SELL signal\n",
      "2017-09-11 ORDER SELL WIKI/AAPL 1\n",
      "2017-09-11 POSITION value:-160.860 upnl:0.640 rpnl:-3.640\n",
      "2017-09-12 TICK WIKI/AAPL open: 162.61 close: 160.82\n",
      "2017-09-12 FILLED SELL 1 WIKI/AAPL at 162.61\n",
      "2017-09-12 POSITION value:0.000 upnl:0.000 rpnl:1.750\n",
      "2017-09-13 TICK WIKI/AAPL open: 159.87 close: 159.65\n",
      "2017-09-13 BUY signal\n",
      "2017-09-13 ORDER BUY WIKI/AAPL 1\n",
      "2017-09-13 POSITION value:0.000 upnl:0.000 rpnl:1.750\n",
      "2017-09-14 TICK WIKI/AAPL open: 158.99 close: 158.28\n",
      "2017-09-14 FILLED BUY 1 WIKI/AAPL at 158.99\n",
      "2017-09-14 POSITION value:-158.990 upnl:-0.710 rpnl:1.750\n",
      "2017-09-15 TICK WIKI/AAPL open: 158.47 close: 159.88\n",
      "2017-09-15 SELL signal\n",
      "2017-09-15 ORDER SELL WIKI/AAPL 1\n",
      "2017-09-15 POSITION value:-158.990 upnl:0.890 rpnl:1.750\n",
      "2017-09-18 TICK WIKI/AAPL open: 160.11 close: 158.67\n",
      "2017-09-18 FILLED SELL 1 WIKI/AAPL at 160.11\n",
      "2017-09-18 BUY signal\n",
      "2017-09-18 ORDER BUY WIKI/AAPL 1\n",
      "2017-09-18 POSITION value:0.000 upnl:0.000 rpnl:1.120\n",
      "2017-09-19 TICK WIKI/AAPL open: 159.51 close: 158.73\n",
      "2017-09-19 FILLED BUY 1 WIKI/AAPL at 159.51\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2017-09-19 POSITION value:-159.510 upnl:-0.780 rpnl:1.120\n",
      "2017-09-20 TICK WIKI/AAPL open: 157.9 close: 156.07\n",
      "2017-09-20 POSITION value:-159.510 upnl:-3.440 rpnl:1.120\n",
      "2017-09-21 TICK WIKI/AAPL open: 155.8 close: 153.39\n",
      "2017-09-21 POSITION value:-159.510 upnl:-6.120 rpnl:1.120\n",
      "2017-09-22 TICK WIKI/AAPL open: 152.02 close: 151.89\n",
      "2017-09-22 POSITION value:-159.510 upnl:-7.620 rpnl:1.120\n",
      "2017-09-25 TICK WIKI/AAPL open: 149.99 close: 150.55\n",
      "2017-09-25 POSITION value:-159.510 upnl:-8.960 rpnl:1.120\n",
      "2017-09-26 TICK WIKI/AAPL open: 151.78 close: 153.14\n",
      "2017-09-26 SELL signal\n",
      "2017-09-26 ORDER SELL WIKI/AAPL 1\n",
      "2017-09-26 POSITION value:-159.510 upnl:-6.370 rpnl:1.120\n",
      "2017-09-27 TICK WIKI/AAPL open: 153.8 close: 154.23\n",
      "2017-09-27 FILLED SELL 1 WIKI/AAPL at 153.8\n",
      "2017-09-27 SELL signal\n",
      "2017-09-27 ORDER SELL WIKI/AAPL 1\n",
      "2017-09-27 POSITION value:0.000 upnl:0.000 rpnl:-5.710\n",
      "2017-09-28 TICK WIKI/AAPL open: 153.89 close: 153.28\n",
      "2017-09-28 FILLED SELL 1 WIKI/AAPL at 153.89\n",
      "2017-09-28 POSITION value:153.890 upnl:0.610 rpnl:-5.710\n",
      "2017-09-29 TICK WIKI/AAPL open: 153.21 close: 154.12\n",
      "2017-09-29 POSITION value:153.890 upnl:-0.230 rpnl:-5.710\n",
      "2017-10-02 TICK WIKI/AAPL open: 154.26 close: 153.81\n",
      "2017-10-02 POSITION value:153.890 upnl:0.080 rpnl:-5.710\n",
      "2017-10-03 TICK WIKI/AAPL open: 154.01 close: 154.48\n",
      "2017-10-03 POSITION value:153.890 upnl:-0.590 rpnl:-5.710\n",
      "2017-10-04 TICK WIKI/AAPL open: 153.63 close: 153.4508\n",
      "2017-10-04 POSITION value:153.890 upnl:0.439 rpnl:-5.710\n",
      "2017-10-05 TICK WIKI/AAPL open: 154.18 close: 155.39\n",
      "2017-10-05 POSITION value:153.890 upnl:-1.500 rpnl:-5.710\n",
      "2017-10-06 TICK WIKI/AAPL open: 154.97 close: 155.3\n",
      "2017-10-06 POSITION value:153.890 upnl:-1.410 rpnl:-5.710\n",
      "2017-10-09 TICK WIKI/AAPL open: 155.81 close: 155.84\n",
      "2017-10-09 POSITION value:153.890 upnl:-1.950 rpnl:-5.710\n",
      "2017-10-10 TICK WIKI/AAPL open: 156.055 close: 155.9\n",
      "2017-10-10 POSITION value:153.890 upnl:-2.010 rpnl:-5.710\n",
      "2017-10-11 TICK WIKI/AAPL open: 155.97 close: 156.55\n",
      "2017-10-11 POSITION value:153.890 upnl:-2.660 rpnl:-5.710\n",
      "2017-10-12 TICK WIKI/AAPL open: 156.35 close: 156.0\n",
      "2017-10-12 POSITION value:153.890 upnl:-2.110 rpnl:-5.710\n",
      "2017-10-13 TICK WIKI/AAPL open: 156.73 close: 156.99\n",
      "2017-10-13 POSITION value:153.890 upnl:-3.100 rpnl:-5.710\n",
      "2017-10-16 TICK WIKI/AAPL open: 157.9 close: 159.88\n",
      "2017-10-16 POSITION value:153.890 upnl:-5.990 rpnl:-5.710\n",
      "2017-10-17 TICK WIKI/AAPL open: 159.78 close: 160.47\n",
      "2017-10-17 POSITION value:153.890 upnl:-6.580 rpnl:-5.710\n",
      "2017-10-18 TICK WIKI/AAPL open: 160.42 close: 159.76\n",
      "2017-10-18 BUY signal\n",
      "2017-10-18 ORDER BUY WIKI/AAPL 1\n",
      "2017-10-18 POSITION value:153.890 upnl:-5.870 rpnl:-5.710\n",
      "2017-10-19 TICK WIKI/AAPL open: 156.75 close: 155.98\n",
      "2017-10-19 FILLED BUY 1 WIKI/AAPL at 156.75\n",
      "2017-10-19 BUY signal\n",
      "2017-10-19 ORDER BUY WIKI/AAPL 1\n",
      "2017-10-19 POSITION value:0.000 upnl:0.000 rpnl:-2.860\n",
      "2017-10-20 TICK WIKI/AAPL open: 156.61 close: 156.16\n",
      "2017-10-20 FILLED BUY 1 WIKI/AAPL at 156.61\n",
      "2017-10-20 POSITION value:-156.610 upnl:-0.450 rpnl:-2.860\n",
      "2017-10-23 TICK WIKI/AAPL open: 156.89 close: 156.17\n",
      "2017-10-23 POSITION value:-156.610 upnl:-0.440 rpnl:-2.860\n",
      "2017-10-24 TICK WIKI/AAPL open: 156.29 close: 157.1\n",
      "2017-10-24 SELL signal\n",
      "2017-10-24 ORDER SELL WIKI/AAPL 1\n",
      "2017-10-24 POSITION value:-156.610 upnl:0.490 rpnl:-2.860\n",
      "2017-10-25 TICK WIKI/AAPL open: 156.91 close: 156.405\n",
      "2017-10-25 FILLED SELL 1 WIKI/AAPL at 156.91\n",
      "2017-10-25 BUY signal\n",
      "2017-10-25 ORDER BUY WIKI/AAPL 1\n",
      "2017-10-25 POSITION value:0.000 upnl:0.000 rpnl:0.300\n",
      "2017-10-26 TICK WIKI/AAPL open: 157.23 close: 157.41\n",
      "2017-10-26 FILLED BUY 1 WIKI/AAPL at 157.23\n",
      "2017-10-26 SELL signal\n",
      "2017-10-26 ORDER SELL WIKI/AAPL 1\n",
      "2017-10-26 POSITION value:-157.230 upnl:0.180 rpnl:0.300\n",
      "2017-10-27 TICK WIKI/AAPL open: 159.29 close: 163.05\n",
      "2017-10-27 FILLED SELL 1 WIKI/AAPL at 159.29\n",
      "2017-10-27 SELL signal\n",
      "2017-10-27 ORDER SELL WIKI/AAPL 1\n",
      "2017-10-27 POSITION value:0.000 upnl:0.000 rpnl:2.060\n",
      "2017-10-30 TICK WIKI/AAPL open: 163.89 close: 166.72\n",
      "2017-10-30 FILLED SELL 1 WIKI/AAPL at 163.89\n",
      "2017-10-30 POSITION value:163.890 upnl:-2.830 rpnl:2.060\n",
      "2017-10-31 TICK WIKI/AAPL open: 167.9 close: 169.04\n",
      "2017-10-31 POSITION value:163.890 upnl:-5.150 rpnl:2.060\n",
      "2017-11-01 TICK WIKI/AAPL open: 169.87 close: 166.89\n",
      "2017-11-01 BUY signal\n",
      "2017-11-01 ORDER BUY WIKI/AAPL 1\n",
      "2017-11-01 POSITION value:163.890 upnl:-3.000 rpnl:2.060\n",
      "2017-11-02 TICK WIKI/AAPL open: 167.64 close: 168.11\n",
      "2017-11-02 FILLED BUY 1 WIKI/AAPL at 167.64\n",
      "2017-11-02 POSITION value:0.000 upnl:0.000 rpnl:-3.750\n",
      "2017-11-03 TICK WIKI/AAPL open: 174.0 close: 172.5\n",
      "2017-11-03 SELL signal\n",
      "2017-11-03 ORDER SELL WIKI/AAPL 1\n",
      "2017-11-03 POSITION value:0.000 upnl:0.000 rpnl:-3.750\n",
      "2017-11-06 TICK WIKI/AAPL open: 172.365 close: 174.25\n",
      "2017-11-06 FILLED SELL 1 WIKI/AAPL at 172.365\n",
      "2017-11-06 POSITION value:172.365 upnl:-1.885 rpnl:-3.750\n",
      "2017-11-07 TICK WIKI/AAPL open: 173.91 close: 174.81\n",
      "2017-11-07 POSITION value:172.365 upnl:-2.445 rpnl:-3.750\n",
      "2017-11-09 TICK WIKI/AAPL open: 175.11 close: 175.88\n",
      "2017-11-09 POSITION value:172.365 upnl:-3.515 rpnl:-3.750\n",
      "2017-11-10 TICK WIKI/AAPL open: 175.11 close: 174.67\n",
      "2017-11-10 BUY signal\n",
      "2017-11-10 ORDER BUY WIKI/AAPL 1\n",
      "2017-11-10 POSITION value:172.365 upnl:-2.305 rpnl:-3.750\n",
      "2017-11-13 TICK WIKI/AAPL open: 173.5 close: 173.97\n",
      "2017-11-13 FILLED BUY 1 WIKI/AAPL at 173.5\n",
      "2017-11-13 BUY signal\n",
      "2017-11-13 ORDER BUY WIKI/AAPL 1\n",
      "2017-11-13 POSITION value:0.000 upnl:0.000 rpnl:-1.135\n",
      "2017-11-14 TICK WIKI/AAPL open: 173.04 close: 171.34\n",
      "2017-11-14 FILLED BUY 1 WIKI/AAPL at 173.04\n",
      "2017-11-14 POSITION value:-173.040 upnl:-1.700 rpnl:-1.135\n",
      "2017-11-15 TICK WIKI/AAPL open: 169.97 close: 169.08\n",
      "2017-11-15 POSITION value:-173.040 upnl:-3.960 rpnl:-1.135\n",
      "2017-11-16 TICK WIKI/AAPL open: 171.18 close: 171.1\n",
      "2017-11-16 SELL signal\n",
      "2017-11-16 ORDER SELL WIKI/AAPL 1\n",
      "2017-11-16 POSITION value:-173.040 upnl:-1.940 rpnl:-1.135\n",
      "2017-11-17 TICK WIKI/AAPL open: 171.04 close: 170.15\n",
      "2017-11-17 FILLED SELL 1 WIKI/AAPL at 171.04\n",
      "2017-11-17 BUY signal\n",
      "2017-11-17 ORDER BUY WIKI/AAPL 1\n",
      "2017-11-17 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-11-20 TICK WIKI/AAPL open: 170.29 close: 169.98\n",
      "2017-11-20 FILLED BUY 1 WIKI/AAPL at 170.29\n",
      "2017-11-20 POSITION value:-170.290 upnl:-0.310 rpnl:-2.000\n",
      "2017-11-21 TICK WIKI/AAPL open: 170.78 close: 173.14\n",
      "2017-11-21 SELL signal\n",
      "2017-11-21 ORDER SELL WIKI/AAPL 1\n",
      "2017-11-21 POSITION value:-170.290 upnl:2.850 rpnl:-2.000\n",
      "2017-11-22 TICK WIKI/AAPL open: 173.36 close: 174.96\n",
      "2017-11-22 FILLED SELL 1 WIKI/AAPL at 173.36\n",
      "2017-11-22 POSITION value:0.000 upnl:0.000 rpnl:3.070\n",
      "2017-11-24 TICK WIKI/AAPL open: 175.1 close: 174.97\n",
      "2017-11-24 POSITION value:0.000 upnl:0.000 rpnl:3.070\n",
      "2017-11-27 TICK WIKI/AAPL open: 175.05 close: 174.09\n",
      "2017-11-27 BUY signal\n",
      "2017-11-27 ORDER BUY WIKI/AAPL 1\n",
      "2017-11-27 POSITION value:0.000 upnl:0.000 rpnl:3.070\n",
      "2017-11-28 TICK WIKI/AAPL open: 174.3 close: 173.07\n",
      "2017-11-28 FILLED BUY 1 WIKI/AAPL at 174.3\n",
      "2017-11-28 POSITION value:-174.300 upnl:-1.230 rpnl:3.070\n",
      "2017-11-29 TICK WIKI/AAPL open: 172.63 close: 169.48\n",
      "2017-11-29 POSITION value:-174.300 upnl:-4.820 rpnl:3.070\n",
      "2017-11-30 TICK WIKI/AAPL open: 170.43 close: 171.85\n",
      "2017-11-30 SELL signal\n",
      "2017-11-30 ORDER SELL WIKI/AAPL 1\n",
      "2017-11-30 POSITION value:-174.300 upnl:-2.450 rpnl:3.070\n",
      "2017-12-01 TICK WIKI/AAPL open: 169.95 close: 171.05\n",
      "2017-12-01 FILLED SELL 1 WIKI/AAPL at 169.95\n",
      "2017-12-01 POSITION value:0.000 upnl:0.000 rpnl:-4.350\n",
      "2017-12-04 TICK WIKI/AAPL open: 172.48 close: 169.8\n",
      "2017-12-04 BUY signal\n",
      "2017-12-04 ORDER BUY WIKI/AAPL 1\n",
      "2017-12-04 POSITION value:0.000 upnl:0.000 rpnl:-4.350\n",
      "2017-12-05 TICK WIKI/AAPL open: 169.06 close: 169.64\n",
      "2017-12-05 FILLED BUY 1 WIKI/AAPL at 169.06\n",
      "2017-12-05 POSITION value:-169.060 upnl:0.580 rpnl:-4.350\n",
      "2017-12-06 TICK WIKI/AAPL open: 167.5 close: 169.01\n",
      "2017-12-06 POSITION value:-169.060 upnl:-0.050 rpnl:-4.350\n",
      "2017-12-07 TICK WIKI/AAPL open: 169.03 close: 169.452\n",
      "2017-12-07 POSITION value:-169.060 upnl:0.392 rpnl:-4.350\n",
      "2017-12-08 TICK WIKI/AAPL open: 170.49 close: 169.37\n",
      "2017-12-08 POSITION value:-169.060 upnl:0.310 rpnl:-4.350\n",
      "2017-12-11 TICK WIKI/AAPL open: 169.2 close: 172.67\n",
      "2017-12-11 SELL signal\n",
      "2017-12-11 ORDER SELL WIKI/AAPL 1\n",
      "2017-12-11 POSITION value:-169.060 upnl:3.610 rpnl:-4.350\n",
      "2017-12-12 TICK WIKI/AAPL open: 172.15 close: 171.7\n",
      "2017-12-12 FILLED SELL 1 WIKI/AAPL at 172.15\n",
      "2017-12-12 BUY signal\n",
      "2017-12-12 ORDER BUY WIKI/AAPL 1\n",
      "2017-12-12 POSITION value:0.000 upnl:0.000 rpnl:3.090\n",
      "2017-12-13 TICK WIKI/AAPL open: 172.5 close: 172.27\n",
      "2017-12-13 FILLED BUY 1 WIKI/AAPL at 172.5\n",
      "2017-12-13 POSITION value:-172.500 upnl:-0.230 rpnl:3.090\n",
      "2017-12-14 TICK WIKI/AAPL open: 172.4 close: 172.22\n",
      "2017-12-14 POSITION value:-172.500 upnl:-0.280 rpnl:3.090\n",
      "2017-12-15 TICK WIKI/AAPL open: 173.63 close: 173.87\n",
      "2017-12-15 SELL signal\n",
      "2017-12-15 ORDER SELL WIKI/AAPL 1\n",
      "2017-12-15 POSITION value:-172.500 upnl:1.370 rpnl:3.090\n",
      "2017-12-18 TICK WIKI/AAPL open: 174.88 close: 176.42\n",
      "2017-12-18 FILLED SELL 1 WIKI/AAPL at 174.88\n",
      "2017-12-18 SELL signal\n",
      "2017-12-18 ORDER SELL WIKI/AAPL 1\n",
      "2017-12-18 POSITION value:0.000 upnl:0.000 rpnl:2.380\n",
      "2017-12-19 TICK WIKI/AAPL open: 175.03 close: 174.54\n",
      "2017-12-19 FILLED SELL 1 WIKI/AAPL at 175.03\n",
      "2017-12-19 BUY signal\n",
      "2017-12-19 ORDER BUY WIKI/AAPL 1\n",
      "2017-12-19 POSITION value:175.030 upnl:0.490 rpnl:2.380\n",
      "2017-12-20 TICK WIKI/AAPL open: 174.87 close: 174.35\n",
      "2017-12-20 FILLED BUY 1 WIKI/AAPL at 174.87\n",
      "2017-12-20 POSITION value:0.000 upnl:0.000 rpnl:0.160\n",
      "2017-12-21 TICK WIKI/AAPL open: 174.17 close: 175.01\n",
      "2017-12-21 POSITION value:0.000 upnl:0.000 rpnl:0.160\n",
      "2017-12-22 TICK WIKI/AAPL open: 174.68 close: 175.01\n",
      "2017-12-22 POSITION value:0.000 upnl:0.000 rpnl:0.160\n",
      "2017-12-26 TICK WIKI/AAPL open: 170.8 close: 170.57\n",
      "2017-12-26 BUY signal\n",
      "2017-12-26 ORDER BUY WIKI/AAPL 1\n",
      "2017-12-26 POSITION value:0.000 upnl:0.000 rpnl:0.160\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2017-12-27 TICK WIKI/AAPL open: 170.1 close: 170.6\n",
      "2017-12-27 FILLED BUY 1 WIKI/AAPL at 170.1\n",
      "2017-12-27 POSITION value:-170.100 upnl:0.500 rpnl:0.160\n",
      "2017-12-28 TICK WIKI/AAPL open: 171.0 close: 171.08\n",
      "2017-12-28 POSITION value:-170.100 upnl:0.980 rpnl:0.160\n",
      "2017-12-29 TICK WIKI/AAPL open: 170.52 close: 169.23\n",
      "2017-12-29 POSITION value:-170.100 upnl:-0.870 rpnl:0.160\n",
      "Backtest completed.\n",
      "Backtest started...\n",
      "Processing total_ticks: 753\n",
      "2015-01-02 TICK WIKI/AAPL open: 111.39 close: 109.33\n",
      "2015-01-05 TICK WIKI/AAPL open: 108.29 close: 106.25\n",
      "2015-01-06 TICK WIKI/AAPL open: 106.54 close: 106.26\n",
      "2015-01-07 TICK WIKI/AAPL open: 107.2 close: 107.75\n",
      "2015-01-08 TICK WIKI/AAPL open: 109.23 close: 111.89\n",
      "2015-01-09 TICK WIKI/AAPL open: 112.67 close: 112.01\n",
      "2015-01-12 TICK WIKI/AAPL open: 112.6 close: 109.25\n",
      "2015-01-13 TICK WIKI/AAPL open: 111.43 close: 110.22\n",
      "2015-01-14 TICK WIKI/AAPL open: 109.04 close: 109.8\n",
      "2015-01-15 TICK WIKI/AAPL open: 110.0 close: 106.82\n",
      "2015-01-16 TICK WIKI/AAPL open: 107.03 close: 105.99\n",
      "2015-01-20 TICK WIKI/AAPL open: 107.84 close: 108.72\n",
      "2015-01-21 TICK WIKI/AAPL open: 108.95 close: 109.55\n",
      "2015-01-22 TICK WIKI/AAPL open: 110.26 close: 112.4\n",
      "2015-01-23 TICK WIKI/AAPL open: 112.3 close: 112.98\n",
      "2015-01-26 TICK WIKI/AAPL open: 113.74 close: 113.1\n",
      "2015-01-27 TICK WIKI/AAPL open: 112.42 close: 109.14\n",
      "2015-01-28 TICK WIKI/AAPL open: 117.625 close: 115.31\n",
      "2015-01-29 TICK WIKI/AAPL open: 116.32 close: 118.9\n",
      "2015-01-30 TICK WIKI/AAPL open: 118.4 close: 117.16\n",
      "2015-02-02 TICK WIKI/AAPL open: 118.05 close: 118.63\n",
      "2015-02-03 TICK WIKI/AAPL open: 118.5 close: 118.65\n",
      "2015-02-04 TICK WIKI/AAPL open: 118.5 close: 119.56\n",
      "2015-02-05 TICK WIKI/AAPL open: 120.02 close: 119.94\n",
      "2015-02-06 TICK WIKI/AAPL open: 120.02 close: 118.93\n",
      "2015-02-09 TICK WIKI/AAPL open: 118.55 close: 119.72\n",
      "2015-02-10 TICK WIKI/AAPL open: 120.17 close: 122.02\n",
      "2015-02-11 TICK WIKI/AAPL open: 122.77 close: 124.88\n",
      "2015-02-12 TICK WIKI/AAPL open: 126.06 close: 126.46\n",
      "2015-02-13 TICK WIKI/AAPL open: 127.28 close: 127.08\n",
      "2015-02-17 TICK WIKI/AAPL open: 127.49 close: 127.83\n",
      "2015-02-18 TICK WIKI/AAPL open: 127.625 close: 128.715\n",
      "2015-02-19 TICK WIKI/AAPL open: 128.48 close: 128.45\n",
      "2015-02-20 TICK WIKI/AAPL open: 128.62 close: 129.495\n",
      "2015-02-23 TICK WIKI/AAPL open: 130.02 close: 133.0\n",
      "2015-02-24 TICK WIKI/AAPL open: 132.94 close: 132.17\n",
      "2015-02-25 TICK WIKI/AAPL open: 131.56 close: 128.79\n",
      "2015-02-25 BUY signal\n",
      "2015-02-25 ORDER BUY WIKI/AAPL 1\n",
      "2015-02-26 TICK WIKI/AAPL open: 128.785 close: 130.415\n",
      "2015-02-26 FILLED BUY 1 WIKI/AAPL at 128.785\n",
      "2015-02-26 POSITION value:-128.785 upnl:1.630 rpnl:0.000\n",
      "2015-02-27 TICK WIKI/AAPL open: 130.0 close: 128.46\n",
      "2015-02-27 POSITION value:-128.785 upnl:-0.325 rpnl:0.000\n",
      "2015-03-02 TICK WIKI/AAPL open: 129.25 close: 129.09\n",
      "2015-03-02 POSITION value:-128.785 upnl:0.305 rpnl:0.000\n",
      "2015-03-03 TICK WIKI/AAPL open: 128.96 close: 129.36\n",
      "2015-03-03 POSITION value:-128.785 upnl:0.575 rpnl:0.000\n",
      "2015-03-04 TICK WIKI/AAPL open: 129.1 close: 128.54\n",
      "2015-03-04 POSITION value:-128.785 upnl:-0.245 rpnl:0.000\n",
      "2015-03-05 TICK WIKI/AAPL open: 128.58 close: 126.41\n",
      "2015-03-05 POSITION value:-128.785 upnl:-2.375 rpnl:0.000\n",
      "2015-03-06 TICK WIKI/AAPL open: 128.4 close: 126.6\n",
      "2015-03-06 POSITION value:-128.785 upnl:-2.185 rpnl:0.000\n",
      "2015-03-09 TICK WIKI/AAPL open: 127.96 close: 127.14\n",
      "2015-03-09 POSITION value:-128.785 upnl:-1.645 rpnl:0.000\n",
      "2015-03-10 TICK WIKI/AAPL open: 126.41 close: 124.51\n",
      "2015-03-10 POSITION value:-128.785 upnl:-4.275 rpnl:0.000\n",
      "2015-03-11 TICK WIKI/AAPL open: 124.75 close: 122.24\n",
      "2015-03-11 POSITION value:-128.785 upnl:-6.545 rpnl:0.000\n",
      "2015-03-12 TICK WIKI/AAPL open: 122.31 close: 124.45\n",
      "2015-03-12 POSITION value:-128.785 upnl:-4.335 rpnl:0.000\n",
      "2015-03-13 TICK WIKI/AAPL open: 124.4 close: 123.59\n",
      "2015-03-13 POSITION value:-128.785 upnl:-5.195 rpnl:0.000\n",
      "2015-03-16 TICK WIKI/AAPL open: 123.88 close: 124.95\n",
      "2015-03-16 POSITION value:-128.785 upnl:-3.835 rpnl:0.000\n",
      "2015-03-17 TICK WIKI/AAPL open: 125.9 close: 127.04\n",
      "2015-03-17 POSITION value:-128.785 upnl:-1.745 rpnl:0.000\n",
      "2015-03-18 TICK WIKI/AAPL open: 127.0 close: 128.47\n",
      "2015-03-18 POSITION value:-128.785 upnl:-0.315 rpnl:0.000\n",
      "2015-03-19 TICK WIKI/AAPL open: 128.75 close: 127.495\n",
      "2015-03-19 POSITION value:-128.785 upnl:-1.290 rpnl:0.000\n",
      "2015-03-20 TICK WIKI/AAPL open: 128.25 close: 125.9\n",
      "2015-03-20 POSITION value:-128.785 upnl:-2.885 rpnl:0.000\n",
      "2015-03-23 TICK WIKI/AAPL open: 127.12 close: 127.21\n",
      "2015-03-23 POSITION value:-128.785 upnl:-1.575 rpnl:0.000\n",
      "2015-03-24 TICK WIKI/AAPL open: 127.23 close: 126.69\n",
      "2015-03-24 POSITION value:-128.785 upnl:-2.095 rpnl:0.000\n",
      "2015-03-25 TICK WIKI/AAPL open: 126.54 close: 123.38\n",
      "2015-03-25 POSITION value:-128.785 upnl:-5.405 rpnl:0.000\n",
      "2015-03-26 TICK WIKI/AAPL open: 122.76 close: 124.24\n",
      "2015-03-26 POSITION value:-128.785 upnl:-4.545 rpnl:0.000\n",
      "2015-03-27 TICK WIKI/AAPL open: 124.57 close: 123.25\n",
      "2015-03-27 POSITION value:-128.785 upnl:-5.535 rpnl:0.000\n",
      "2015-03-30 TICK WIKI/AAPL open: 124.05 close: 126.37\n",
      "2015-03-30 SELL signal\n",
      "2015-03-30 ORDER SELL WIKI/AAPL 1\n",
      "2015-03-30 POSITION value:-128.785 upnl:-2.415 rpnl:0.000\n",
      "2015-03-31 TICK WIKI/AAPL open: 126.09 close: 124.43\n",
      "2015-03-31 FILLED SELL 1 WIKI/AAPL at 126.09\n",
      "2015-03-31 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-01 TICK WIKI/AAPL open: 124.82 close: 124.25\n",
      "2015-04-01 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-02 TICK WIKI/AAPL open: 125.03 close: 125.32\n",
      "2015-04-02 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-06 TICK WIKI/AAPL open: 124.47 close: 127.35\n",
      "2015-04-06 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-07 TICK WIKI/AAPL open: 127.64 close: 126.01\n",
      "2015-04-07 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-08 TICK WIKI/AAPL open: 125.85 close: 125.6\n",
      "2015-04-08 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-09 TICK WIKI/AAPL open: 125.85 close: 126.56\n",
      "2015-04-09 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-10 TICK WIKI/AAPL open: 125.95 close: 127.1\n",
      "2015-04-10 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-13 TICK WIKI/AAPL open: 128.37 close: 126.85\n",
      "2015-04-13 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-14 TICK WIKI/AAPL open: 127.0 close: 126.3\n",
      "2015-04-14 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-15 TICK WIKI/AAPL open: 126.41 close: 126.78\n",
      "2015-04-15 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-16 TICK WIKI/AAPL open: 126.28 close: 126.17\n",
      "2015-04-16 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-17 TICK WIKI/AAPL open: 125.55 close: 124.75\n",
      "2015-04-17 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-20 TICK WIKI/AAPL open: 125.57 close: 127.6\n",
      "2015-04-20 SELL signal\n",
      "2015-04-20 ORDER SELL WIKI/AAPL 1\n",
      "2015-04-20 POSITION value:0.000 upnl:0.000 rpnl:-2.695\n",
      "2015-04-21 TICK WIKI/AAPL open: 128.1 close: 126.91\n",
      "2015-04-21 FILLED SELL 1 WIKI/AAPL at 128.1\n",
      "2015-04-21 POSITION value:128.100 upnl:1.190 rpnl:-2.695\n",
      "2015-04-22 TICK WIKI/AAPL open: 126.99 close: 128.62\n",
      "2015-04-22 POSITION value:128.100 upnl:-0.520 rpnl:-2.695\n",
      "2015-04-23 TICK WIKI/AAPL open: 128.3 close: 129.67\n",
      "2015-04-23 POSITION value:128.100 upnl:-1.570 rpnl:-2.695\n",
      "2015-04-24 TICK WIKI/AAPL open: 130.49 close: 130.28\n",
      "2015-04-24 POSITION value:128.100 upnl:-2.180 rpnl:-2.695\n",
      "2015-04-27 TICK WIKI/AAPL open: 132.31 close: 132.65\n",
      "2015-04-27 POSITION value:128.100 upnl:-4.550 rpnl:-2.695\n",
      "2015-04-28 TICK WIKI/AAPL open: 134.455 close: 130.56\n",
      "2015-04-28 BUY signal\n",
      "2015-04-28 ORDER BUY WIKI/AAPL 1\n",
      "2015-04-28 POSITION value:128.100 upnl:-2.460 rpnl:-2.695\n",
      "2015-04-29 TICK WIKI/AAPL open: 130.16 close: 128.64\n",
      "2015-04-29 FILLED BUY 1 WIKI/AAPL at 130.16\n",
      "2015-04-29 POSITION value:0.000 upnl:0.000 rpnl:-2.060\n",
      "2015-04-30 TICK WIKI/AAPL open: 127.5 close: 125.15\n",
      "2015-04-30 BUY signal\n",
      "2015-04-30 ORDER BUY WIKI/AAPL 1\n",
      "2015-04-30 POSITION value:0.000 upnl:0.000 rpnl:-2.060\n",
      "2015-05-01 TICK WIKI/AAPL open: 126.1 close: 128.95\n",
      "2015-05-01 FILLED BUY 1 WIKI/AAPL at 126.1\n",
      "2015-05-01 SELL signal\n",
      "2015-05-01 ORDER SELL WIKI/AAPL 1\n",
      "2015-05-01 POSITION value:-126.100 upnl:2.850 rpnl:-2.060\n",
      "2015-05-04 TICK WIKI/AAPL open: 129.5 close: 128.7\n",
      "2015-05-04 FILLED SELL 1 WIKI/AAPL at 129.5\n",
      "2015-05-04 POSITION value:0.000 upnl:0.000 rpnl:3.400\n",
      "2015-05-05 TICK WIKI/AAPL open: 128.15 close: 125.8\n",
      "2015-05-05 BUY signal\n",
      "2015-05-05 ORDER BUY WIKI/AAPL 1\n",
      "2015-05-05 POSITION value:0.000 upnl:0.000 rpnl:3.400\n",
      "2015-05-06 TICK WIKI/AAPL open: 126.56 close: 125.01\n",
      "2015-05-06 FILLED BUY 1 WIKI/AAPL at 126.56\n",
      "2015-05-06 POSITION value:-126.560 upnl:-1.550 rpnl:3.400\n",
      "2015-05-07 TICK WIKI/AAPL open: 124.77 close: 125.26\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2015-05-07 POSITION value:-126.560 upnl:-1.300 rpnl:3.400\n",
      "2015-05-08 TICK WIKI/AAPL open: 126.68 close: 127.62\n",
      "2015-05-08 POSITION value:-126.560 upnl:1.060 rpnl:3.400\n",
      "2015-05-11 TICK WIKI/AAPL open: 127.39 close: 126.32\n",
      "2015-05-11 POSITION value:-126.560 upnl:-0.240 rpnl:3.400\n",
      "2015-05-12 TICK WIKI/AAPL open: 125.6 close: 125.865\n",
      "2015-05-12 POSITION value:-126.560 upnl:-0.695 rpnl:3.400\n",
      "2015-05-13 TICK WIKI/AAPL open: 126.15 close: 126.01\n",
      "2015-05-13 POSITION value:-126.560 upnl:-0.550 rpnl:3.400\n",
      "2015-05-14 TICK WIKI/AAPL open: 127.41 close: 128.95\n",
      "2015-05-14 POSITION value:-126.560 upnl:2.390 rpnl:3.400\n",
      "2015-05-15 TICK WIKI/AAPL open: 129.07 close: 128.77\n",
      "2015-05-15 POSITION value:-126.560 upnl:2.210 rpnl:3.400\n",
      "2015-05-18 TICK WIKI/AAPL open: 128.38 close: 130.19\n",
      "2015-05-18 POSITION value:-126.560 upnl:3.630 rpnl:3.400\n",
      "2015-05-19 TICK WIKI/AAPL open: 130.69 close: 130.07\n",
      "2015-05-19 POSITION value:-126.560 upnl:3.510 rpnl:3.400\n",
      "2015-05-20 TICK WIKI/AAPL open: 130.0 close: 130.06\n",
      "2015-05-20 POSITION value:-126.560 upnl:3.500 rpnl:3.400\n",
      "2015-05-21 TICK WIKI/AAPL open: 130.07 close: 131.39\n",
      "2015-05-21 POSITION value:-126.560 upnl:4.830 rpnl:3.400\n",
      "2015-05-22 TICK WIKI/AAPL open: 131.6 close: 132.54\n",
      "2015-05-22 POSITION value:-126.560 upnl:5.980 rpnl:3.400\n",
      "2015-05-26 TICK WIKI/AAPL open: 132.6 close: 129.62\n",
      "2015-05-26 POSITION value:-126.560 upnl:3.060 rpnl:3.400\n",
      "2015-05-27 TICK WIKI/AAPL open: 130.34 close: 132.045\n",
      "2015-05-27 POSITION value:-126.560 upnl:5.485 rpnl:3.400\n",
      "2015-05-28 TICK WIKI/AAPL open: 131.86 close: 131.78\n",
      "2015-05-28 POSITION value:-126.560 upnl:5.220 rpnl:3.400\n",
      "2015-05-29 TICK WIKI/AAPL open: 131.23 close: 130.28\n",
      "2015-05-29 POSITION value:-126.560 upnl:3.720 rpnl:3.400\n",
      "2015-06-01 TICK WIKI/AAPL open: 131.2 close: 130.535\n",
      "2015-06-01 POSITION value:-126.560 upnl:3.975 rpnl:3.400\n",
      "2015-06-02 TICK WIKI/AAPL open: 129.86 close: 129.96\n",
      "2015-06-02 POSITION value:-126.560 upnl:3.400 rpnl:3.400\n",
      "2015-06-03 TICK WIKI/AAPL open: 130.66 close: 130.12\n",
      "2015-06-03 POSITION value:-126.560 upnl:3.560 rpnl:3.400\n",
      "2015-06-04 TICK WIKI/AAPL open: 129.58 close: 129.36\n",
      "2015-06-04 POSITION value:-126.560 upnl:2.800 rpnl:3.400\n",
      "2015-06-05 TICK WIKI/AAPL open: 129.5 close: 128.65\n",
      "2015-06-05 POSITION value:-126.560 upnl:2.090 rpnl:3.400\n",
      "2015-06-08 TICK WIKI/AAPL open: 128.9 close: 127.8\n",
      "2015-06-08 POSITION value:-126.560 upnl:1.240 rpnl:3.400\n",
      "2015-06-09 TICK WIKI/AAPL open: 126.7 close: 127.42\n",
      "2015-06-09 POSITION value:-126.560 upnl:0.860 rpnl:3.400\n",
      "2015-06-10 TICK WIKI/AAPL open: 127.92 close: 128.88\n",
      "2015-06-10 POSITION value:-126.560 upnl:2.320 rpnl:3.400\n",
      "2015-06-11 TICK WIKI/AAPL open: 129.18 close: 128.59\n",
      "2015-06-11 POSITION value:-126.560 upnl:2.030 rpnl:3.400\n",
      "2015-06-12 TICK WIKI/AAPL open: 128.185 close: 127.17\n",
      "2015-06-12 POSITION value:-126.560 upnl:0.610 rpnl:3.400\n",
      "2015-06-15 TICK WIKI/AAPL open: 126.1 close: 126.92\n",
      "2015-06-15 POSITION value:-126.560 upnl:0.360 rpnl:3.400\n",
      "2015-06-16 TICK WIKI/AAPL open: 127.03 close: 127.6\n",
      "2015-06-16 POSITION value:-126.560 upnl:1.040 rpnl:3.400\n",
      "2015-06-17 TICK WIKI/AAPL open: 127.72 close: 127.3\n",
      "2015-06-17 POSITION value:-126.560 upnl:0.740 rpnl:3.400\n",
      "2015-06-18 TICK WIKI/AAPL open: 127.23 close: 127.88\n",
      "2015-06-18 POSITION value:-126.560 upnl:1.320 rpnl:3.400\n",
      "2015-06-19 TICK WIKI/AAPL open: 127.71 close: 126.6\n",
      "2015-06-19 POSITION value:-126.560 upnl:0.040 rpnl:3.400\n",
      "2015-06-22 TICK WIKI/AAPL open: 127.49 close: 127.61\n",
      "2015-06-22 POSITION value:-126.560 upnl:1.050 rpnl:3.400\n",
      "2015-06-23 TICK WIKI/AAPL open: 127.48 close: 127.03\n",
      "2015-06-23 POSITION value:-126.560 upnl:0.470 rpnl:3.400\n",
      "2015-06-24 TICK WIKI/AAPL open: 127.21 close: 128.11\n",
      "2015-06-24 POSITION value:-126.560 upnl:1.550 rpnl:3.400\n",
      "2015-06-25 TICK WIKI/AAPL open: 128.86 close: 127.5\n",
      "2015-06-25 POSITION value:-126.560 upnl:0.940 rpnl:3.400\n",
      "2015-06-26 TICK WIKI/AAPL open: 127.67 close: 126.75\n",
      "2015-06-26 POSITION value:-126.560 upnl:0.190 rpnl:3.400\n",
      "2015-06-29 TICK WIKI/AAPL open: 125.46 close: 124.53\n",
      "2015-06-29 POSITION value:-126.560 upnl:-2.030 rpnl:3.400\n",
      "2015-06-30 TICK WIKI/AAPL open: 125.57 close: 125.425\n",
      "2015-06-30 POSITION value:-126.560 upnl:-1.135 rpnl:3.400\n",
      "2015-07-01 TICK WIKI/AAPL open: 126.9 close: 126.6\n",
      "2015-07-01 POSITION value:-126.560 upnl:0.040 rpnl:3.400\n",
      "2015-07-02 TICK WIKI/AAPL open: 126.43 close: 126.44\n",
      "2015-07-02 POSITION value:-126.560 upnl:-0.120 rpnl:3.400\n",
      "2015-07-06 TICK WIKI/AAPL open: 124.94 close: 126.0\n",
      "2015-07-06 POSITION value:-126.560 upnl:-0.560 rpnl:3.400\n",
      "2015-07-07 TICK WIKI/AAPL open: 125.89 close: 125.69\n",
      "2015-07-07 POSITION value:-126.560 upnl:-0.870 rpnl:3.400\n",
      "2015-07-08 TICK WIKI/AAPL open: 124.48 close: 122.57\n",
      "2015-07-08 POSITION value:-126.560 upnl:-3.990 rpnl:3.400\n",
      "2015-07-09 TICK WIKI/AAPL open: 123.85 close: 120.07\n",
      "2015-07-09 POSITION value:-126.560 upnl:-6.490 rpnl:3.400\n",
      "2015-07-10 TICK WIKI/AAPL open: 121.94 close: 123.28\n",
      "2015-07-10 SELL signal\n",
      "2015-07-10 ORDER SELL WIKI/AAPL 1\n",
      "2015-07-10 POSITION value:-126.560 upnl:-3.280 rpnl:3.400\n",
      "2015-07-13 TICK WIKI/AAPL open: 125.03 close: 125.66\n",
      "2015-07-13 FILLED SELL 1 WIKI/AAPL at 125.03\n",
      "2015-07-13 SELL signal\n",
      "2015-07-13 ORDER SELL WIKI/AAPL 1\n",
      "2015-07-13 POSITION value:0.000 upnl:0.000 rpnl:-1.530\n",
      "2015-07-14 TICK WIKI/AAPL open: 126.04 close: 125.61\n",
      "2015-07-14 FILLED SELL 1 WIKI/AAPL at 126.04\n",
      "2015-07-14 POSITION value:126.040 upnl:0.430 rpnl:-1.530\n",
      "2015-07-15 TICK WIKI/AAPL open: 125.72 close: 126.82\n",
      "2015-07-15 POSITION value:126.040 upnl:-0.780 rpnl:-1.530\n",
      "2015-07-16 TICK WIKI/AAPL open: 127.74 close: 128.51\n",
      "2015-07-16 POSITION value:126.040 upnl:-2.470 rpnl:-1.530\n",
      "2015-07-17 TICK WIKI/AAPL open: 129.08 close: 129.62\n",
      "2015-07-17 POSITION value:126.040 upnl:-3.580 rpnl:-1.530\n",
      "2015-07-20 TICK WIKI/AAPL open: 130.97 close: 132.07\n",
      "2015-07-20 POSITION value:126.040 upnl:-6.030 rpnl:-1.530\n",
      "2015-07-21 TICK WIKI/AAPL open: 132.85 close: 130.75\n",
      "2015-07-21 POSITION value:126.040 upnl:-4.710 rpnl:-1.530\n",
      "2015-07-22 TICK WIKI/AAPL open: 121.99 close: 125.22\n",
      "2015-07-22 BUY signal\n",
      "2015-07-22 ORDER BUY WIKI/AAPL 1\n",
      "2015-07-22 POSITION value:126.040 upnl:0.820 rpnl:-1.530\n",
      "2015-07-23 TICK WIKI/AAPL open: 126.2 close: 125.16\n",
      "2015-07-23 FILLED BUY 1 WIKI/AAPL at 126.2\n",
      "2015-07-23 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-07-24 TICK WIKI/AAPL open: 125.32 close: 124.5\n",
      "2015-07-24 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-07-27 TICK WIKI/AAPL open: 123.09 close: 122.77\n",
      "2015-07-27 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-07-28 TICK WIKI/AAPL open: 123.38 close: 123.38\n",
      "2015-07-28 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-07-29 TICK WIKI/AAPL open: 123.15 close: 122.99\n",
      "2015-07-29 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-07-30 TICK WIKI/AAPL open: 122.32 close: 122.37\n",
      "2015-07-30 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-07-31 TICK WIKI/AAPL open: 122.6 close: 121.3\n",
      "2015-07-31 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-08-03 TICK WIKI/AAPL open: 121.5 close: 118.44\n",
      "2015-08-03 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-08-04 TICK WIKI/AAPL open: 117.42 close: 114.64\n",
      "2015-08-04 BUY signal\n",
      "2015-08-04 ORDER BUY WIKI/AAPL 1\n",
      "2015-08-04 POSITION value:0.000 upnl:0.000 rpnl:-0.160\n",
      "2015-08-05 TICK WIKI/AAPL open: 112.95 close: 115.4\n",
      "2015-08-05 FILLED BUY 1 WIKI/AAPL at 112.95\n",
      "2015-08-05 POSITION value:-112.950 upnl:2.450 rpnl:-0.160\n",
      "2015-08-06 TICK WIKI/AAPL open: 115.97 close: 115.13\n",
      "2015-08-06 POSITION value:-112.950 upnl:2.180 rpnl:-0.160\n",
      "2015-08-07 TICK WIKI/AAPL open: 114.58 close: 115.52\n",
      "2015-08-07 POSITION value:-112.950 upnl:2.570 rpnl:-0.160\n",
      "2015-08-10 TICK WIKI/AAPL open: 116.53 close: 119.72\n",
      "2015-08-10 SELL signal\n",
      "2015-08-10 ORDER SELL WIKI/AAPL 1\n",
      "2015-08-10 POSITION value:-112.950 upnl:6.770 rpnl:-0.160\n",
      "2015-08-11 TICK WIKI/AAPL open: 117.81 close: 113.49\n",
      "2015-08-11 FILLED SELL 1 WIKI/AAPL at 117.81\n",
      "2015-08-11 BUY signal\n",
      "2015-08-11 ORDER BUY WIKI/AAPL 1\n",
      "2015-08-11 POSITION value:0.000 upnl:0.000 rpnl:4.860\n",
      "2015-08-12 TICK WIKI/AAPL open: 112.53 close: 115.24\n",
      "2015-08-12 FILLED BUY 1 WIKI/AAPL at 112.53\n",
      "2015-08-12 POSITION value:-112.530 upnl:2.710 rpnl:4.860\n",
      "2015-08-13 TICK WIKI/AAPL open: 116.04 close: 115.15\n",
      "2015-08-13 POSITION value:-112.530 upnl:2.620 rpnl:4.860\n",
      "2015-08-14 TICK WIKI/AAPL open: 114.32 close: 115.96\n",
      "2015-08-14 POSITION value:-112.530 upnl:3.430 rpnl:4.860\n",
      "2015-08-17 TICK WIKI/AAPL open: 116.04 close: 117.16\n",
      "2015-08-17 POSITION value:-112.530 upnl:4.630 rpnl:4.860\n",
      "2015-08-18 TICK WIKI/AAPL open: 116.43 close: 116.5\n",
      "2015-08-18 POSITION value:-112.530 upnl:3.970 rpnl:4.860\n",
      "2015-08-19 TICK WIKI/AAPL open: 116.1 close: 115.01\n",
      "2015-08-19 POSITION value:-112.530 upnl:2.480 rpnl:4.860\n",
      "2015-08-20 TICK WIKI/AAPL open: 114.08 close: 112.65\n",
      "2015-08-20 POSITION value:-112.530 upnl:0.120 rpnl:4.860\n",
      "2015-08-21 TICK WIKI/AAPL open: 110.43 close: 105.76\n",
      "2015-08-21 POSITION value:-112.530 upnl:-6.770 rpnl:4.860\n",
      "2015-08-24 TICK WIKI/AAPL open: 94.87 close: 103.12\n",
      "2015-08-24 POSITION value:-112.530 upnl:-9.410 rpnl:4.860\n",
      "2015-08-25 TICK WIKI/AAPL open: 111.11 close: 103.74\n",
      "2015-08-25 POSITION value:-112.530 upnl:-8.790 rpnl:4.860\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2015-08-26 TICK WIKI/AAPL open: 107.085 close: 109.69\n",
      "2015-08-26 SELL signal\n",
      "2015-08-26 ORDER SELL WIKI/AAPL 1\n",
      "2015-08-26 POSITION value:-112.530 upnl:-2.840 rpnl:4.860\n",
      "2015-08-27 TICK WIKI/AAPL open: 112.25 close: 112.92\n",
      "2015-08-27 FILLED SELL 1 WIKI/AAPL at 112.25\n",
      "2015-08-27 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-08-28 TICK WIKI/AAPL open: 112.17 close: 113.29\n",
      "2015-08-28 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-08-31 TICK WIKI/AAPL open: 112.13 close: 112.76\n",
      "2015-08-31 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-01 TICK WIKI/AAPL open: 110.18 close: 107.72\n",
      "2015-09-01 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-02 TICK WIKI/AAPL open: 110.0 close: 112.34\n",
      "2015-09-02 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-03 TICK WIKI/AAPL open: 112.49 close: 110.37\n",
      "2015-09-03 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-04 TICK WIKI/AAPL open: 108.97 close: 109.27\n",
      "2015-09-04 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-08 TICK WIKI/AAPL open: 111.65 close: 112.31\n",
      "2015-09-08 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-09 TICK WIKI/AAPL open: 113.76 close: 110.15\n",
      "2015-09-09 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-10 TICK WIKI/AAPL open: 110.27 close: 112.57\n",
      "2015-09-10 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-11 TICK WIKI/AAPL open: 111.79 close: 114.21\n",
      "2015-09-11 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-14 TICK WIKI/AAPL open: 116.58 close: 115.31\n",
      "2015-09-14 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-15 TICK WIKI/AAPL open: 115.93 close: 116.28\n",
      "2015-09-15 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-16 TICK WIKI/AAPL open: 116.25 close: 116.41\n",
      "2015-09-16 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-17 TICK WIKI/AAPL open: 115.66 close: 113.92\n",
      "2015-09-17 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-18 TICK WIKI/AAPL open: 112.21 close: 113.45\n",
      "2015-09-18 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-21 TICK WIKI/AAPL open: 113.67 close: 115.21\n",
      "2015-09-21 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-22 TICK WIKI/AAPL open: 113.38 close: 113.4\n",
      "2015-09-22 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-23 TICK WIKI/AAPL open: 113.63 close: 114.32\n",
      "2015-09-23 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-24 TICK WIKI/AAPL open: 113.25 close: 115.0\n",
      "2015-09-24 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-25 TICK WIKI/AAPL open: 116.44 close: 114.71\n",
      "2015-09-25 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-28 TICK WIKI/AAPL open: 113.85 close: 112.44\n",
      "2015-09-28 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-29 TICK WIKI/AAPL open: 112.83 close: 109.06\n",
      "2015-09-29 BUY signal\n",
      "2015-09-29 ORDER BUY WIKI/AAPL 1\n",
      "2015-09-29 POSITION value:0.000 upnl:0.000 rpnl:-0.280\n",
      "2015-09-30 TICK WIKI/AAPL open: 110.17 close: 109.95\n",
      "2015-09-30 FILLED BUY 1 WIKI/AAPL at 110.17\n",
      "2015-09-30 POSITION value:-110.170 upnl:-0.220 rpnl:-0.280\n",
      "2015-10-01 TICK WIKI/AAPL open: 109.07 close: 109.58\n",
      "2015-10-01 POSITION value:-110.170 upnl:-0.590 rpnl:-0.280\n",
      "2015-10-02 TICK WIKI/AAPL open: 108.01 close: 110.38\n",
      "2015-10-02 POSITION value:-110.170 upnl:0.210 rpnl:-0.280\n",
      "2015-10-05 TICK WIKI/AAPL open: 109.88 close: 110.78\n",
      "2015-10-05 POSITION value:-110.170 upnl:0.610 rpnl:-0.280\n",
      "2015-10-06 TICK WIKI/AAPL open: 110.63 close: 111.31\n",
      "2015-10-06 POSITION value:-110.170 upnl:1.140 rpnl:-0.280\n",
      "2015-10-07 TICK WIKI/AAPL open: 111.74 close: 110.78\n",
      "2015-10-07 POSITION value:-110.170 upnl:0.610 rpnl:-0.280\n",
      "2015-10-08 TICK WIKI/AAPL open: 110.19 close: 109.5\n",
      "2015-10-08 POSITION value:-110.170 upnl:-0.670 rpnl:-0.280\n",
      "2015-10-09 TICK WIKI/AAPL open: 110.0 close: 112.12\n",
      "2015-10-09 SELL signal\n",
      "2015-10-09 ORDER SELL WIKI/AAPL 1\n",
      "2015-10-09 POSITION value:-110.170 upnl:1.950 rpnl:-0.280\n",
      "2015-10-12 TICK WIKI/AAPL open: 112.73 close: 111.6\n",
      "2015-10-12 FILLED SELL 1 WIKI/AAPL at 112.73\n",
      "2015-10-12 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-13 TICK WIKI/AAPL open: 110.82 close: 111.79\n",
      "2015-10-13 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-14 TICK WIKI/AAPL open: 111.29 close: 110.21\n",
      "2015-10-14 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-15 TICK WIKI/AAPL open: 110.93 close: 111.86\n",
      "2015-10-15 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-16 TICK WIKI/AAPL open: 111.78 close: 111.04\n",
      "2015-10-16 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-19 TICK WIKI/AAPL open: 110.8 close: 111.73\n",
      "2015-10-19 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-20 TICK WIKI/AAPL open: 111.34 close: 113.77\n",
      "2015-10-20 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-21 TICK WIKI/AAPL open: 114.0 close: 113.76\n",
      "2015-10-21 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-22 TICK WIKI/AAPL open: 114.33 close: 115.5\n",
      "2015-10-22 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-23 TICK WIKI/AAPL open: 116.7 close: 119.08\n",
      "2015-10-23 SELL signal\n",
      "2015-10-23 ORDER SELL WIKI/AAPL 1\n",
      "2015-10-23 POSITION value:0.000 upnl:0.000 rpnl:2.560\n",
      "2015-10-26 TICK WIKI/AAPL open: 118.08 close: 115.28\n",
      "2015-10-26 FILLED SELL 1 WIKI/AAPL at 118.08\n",
      "2015-10-26 BUY signal\n",
      "2015-10-26 ORDER BUY WIKI/AAPL 1\n",
      "2015-10-26 POSITION value:118.080 upnl:2.800 rpnl:2.560\n",
      "2015-10-27 TICK WIKI/AAPL open: 115.4 close: 114.55\n",
      "2015-10-27 FILLED BUY 1 WIKI/AAPL at 115.4\n",
      "2015-10-27 POSITION value:0.000 upnl:0.000 rpnl:2.680\n",
      "2015-10-28 TICK WIKI/AAPL open: 116.93 close: 119.27\n",
      "2015-10-28 SELL signal\n",
      "2015-10-28 ORDER SELL WIKI/AAPL 1\n",
      "2015-10-28 POSITION value:0.000 upnl:0.000 rpnl:2.680\n",
      "2015-10-29 TICK WIKI/AAPL open: 118.7 close: 120.53\n",
      "2015-10-29 FILLED SELL 1 WIKI/AAPL at 118.7\n",
      "2015-10-29 POSITION value:118.700 upnl:-1.830 rpnl:2.680\n",
      "2015-10-30 TICK WIKI/AAPL open: 120.99 close: 119.5\n",
      "2015-10-30 POSITION value:118.700 upnl:-0.800 rpnl:2.680\n",
      "2015-11-02 TICK WIKI/AAPL open: 119.87 close: 121.18\n",
      "2015-11-02 POSITION value:118.700 upnl:-2.480 rpnl:2.680\n",
      "2015-11-03 TICK WIKI/AAPL open: 120.79 close: 122.57\n",
      "2015-11-03 POSITION value:118.700 upnl:-3.870 rpnl:2.680\n",
      "2015-11-04 TICK WIKI/AAPL open: 123.13 close: 122.0\n",
      "2015-11-04 POSITION value:118.700 upnl:-3.300 rpnl:2.680\n",
      "2015-11-05 TICK WIKI/AAPL open: 121.85 close: 120.92\n",
      "2015-11-05 POSITION value:118.700 upnl:-2.220 rpnl:2.680\n",
      "2015-11-06 TICK WIKI/AAPL open: 121.11 close: 121.06\n",
      "2015-11-06 POSITION value:118.700 upnl:-2.360 rpnl:2.680\n",
      "2015-11-09 TICK WIKI/AAPL open: 120.96 close: 120.57\n",
      "2015-11-09 POSITION value:118.700 upnl:-1.870 rpnl:2.680\n",
      "2015-11-10 TICK WIKI/AAPL open: 116.9 close: 116.77\n",
      "2015-11-10 BUY signal\n",
      "2015-11-10 ORDER BUY WIKI/AAPL 1\n",
      "2015-11-10 POSITION value:118.700 upnl:1.930 rpnl:2.680\n",
      "2015-11-11 TICK WIKI/AAPL open: 116.37 close: 116.11\n",
      "2015-11-11 FILLED BUY 1 WIKI/AAPL at 116.37\n",
      "2015-11-11 POSITION value:0.000 upnl:0.000 rpnl:2.330\n",
      "2015-11-12 TICK WIKI/AAPL open: 116.26 close: 115.72\n",
      "2015-11-12 POSITION value:0.000 upnl:0.000 rpnl:2.330\n",
      "2015-11-13 TICK WIKI/AAPL open: 115.2 close: 112.34\n",
      "2015-11-13 BUY signal\n",
      "2015-11-13 ORDER BUY WIKI/AAPL 1\n",
      "2015-11-13 POSITION value:0.000 upnl:0.000 rpnl:2.330\n",
      "2015-11-16 TICK WIKI/AAPL open: 111.38 close: 114.175\n",
      "2015-11-16 FILLED BUY 1 WIKI/AAPL at 111.38\n",
      "2015-11-16 POSITION value:-111.380 upnl:2.795 rpnl:2.330\n",
      "2015-11-17 TICK WIKI/AAPL open: 114.92 close: 113.69\n",
      "2015-11-17 POSITION value:-111.380 upnl:2.310 rpnl:2.330\n",
      "2015-11-18 TICK WIKI/AAPL open: 115.76 close: 117.29\n",
      "2015-11-18 SELL signal\n",
      "2015-11-18 ORDER SELL WIKI/AAPL 1\n",
      "2015-11-18 POSITION value:-111.380 upnl:5.910 rpnl:2.330\n",
      "2015-11-19 TICK WIKI/AAPL open: 117.64 close: 118.78\n",
      "2015-11-19 FILLED SELL 1 WIKI/AAPL at 117.64\n",
      "2015-11-19 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-11-20 TICK WIKI/AAPL open: 119.2 close: 119.3\n",
      "2015-11-20 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-11-23 TICK WIKI/AAPL open: 119.27 close: 117.75\n",
      "2015-11-23 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-11-24 TICK WIKI/AAPL open: 117.33 close: 118.88\n",
      "2015-11-24 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-11-25 TICK WIKI/AAPL open: 119.21 close: 118.03\n",
      "2015-11-25 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-11-27 TICK WIKI/AAPL open: 118.29 close: 117.81\n",
      "2015-11-27 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-11-30 TICK WIKI/AAPL open: 117.99 close: 118.3\n",
      "2015-11-30 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-12-01 TICK WIKI/AAPL open: 118.75 close: 117.34\n",
      "2015-12-01 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-12-02 TICK WIKI/AAPL open: 117.05 close: 116.28\n",
      "2015-12-02 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-12-03 TICK WIKI/AAPL open: 116.55 close: 115.2\n",
      "2015-12-03 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-12-04 TICK WIKI/AAPL open: 115.29 close: 119.03\n",
      "2015-12-04 SELL signal\n",
      "2015-12-04 ORDER SELL WIKI/AAPL 1\n",
      "2015-12-04 POSITION value:0.000 upnl:0.000 rpnl:6.260\n",
      "2015-12-07 TICK WIKI/AAPL open: 118.98 close: 118.28\n",
      "2015-12-07 FILLED SELL 1 WIKI/AAPL at 118.98\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2015-12-07 POSITION value:118.980 upnl:0.700 rpnl:6.260\n",
      "2015-12-08 TICK WIKI/AAPL open: 117.52 close: 118.23\n",
      "2015-12-08 POSITION value:118.980 upnl:0.750 rpnl:6.260\n",
      "2015-12-09 TICK WIKI/AAPL open: 117.64 close: 115.62\n",
      "2015-12-09 POSITION value:118.980 upnl:3.360 rpnl:6.260\n",
      "2015-12-10 TICK WIKI/AAPL open: 116.04 close: 116.17\n",
      "2015-12-10 POSITION value:118.980 upnl:2.810 rpnl:6.260\n",
      "2015-12-11 TICK WIKI/AAPL open: 115.19 close: 113.18\n",
      "2015-12-11 BUY signal\n",
      "2015-12-11 ORDER BUY WIKI/AAPL 1\n",
      "2015-12-11 POSITION value:118.980 upnl:5.800 rpnl:6.260\n",
      "2015-12-14 TICK WIKI/AAPL open: 112.18 close: 112.48\n",
      "2015-12-14 FILLED BUY 1 WIKI/AAPL at 112.18\n",
      "2015-12-14 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-15 TICK WIKI/AAPL open: 111.94 close: 110.49\n",
      "2015-12-15 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-16 TICK WIKI/AAPL open: 111.07 close: 111.34\n",
      "2015-12-16 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-17 TICK WIKI/AAPL open: 112.02 close: 108.98\n",
      "2015-12-17 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-18 TICK WIKI/AAPL open: 108.91 close: 106.03\n",
      "2015-12-18 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-21 TICK WIKI/AAPL open: 107.28 close: 107.33\n",
      "2015-12-21 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-22 TICK WIKI/AAPL open: 107.4 close: 107.23\n",
      "2015-12-22 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-23 TICK WIKI/AAPL open: 107.27 close: 108.61\n",
      "2015-12-23 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-24 TICK WIKI/AAPL open: 109.0 close: 108.03\n",
      "2015-12-24 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-28 TICK WIKI/AAPL open: 107.59 close: 106.82\n",
      "2015-12-28 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-29 TICK WIKI/AAPL open: 106.96 close: 108.74\n",
      "2015-12-29 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-30 TICK WIKI/AAPL open: 108.58 close: 107.32\n",
      "2015-12-30 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2015-12-31 TICK WIKI/AAPL open: 107.01 close: 105.26\n",
      "2015-12-31 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2016-01-04 TICK WIKI/AAPL open: 102.61 close: 105.35\n",
      "2016-01-04 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2016-01-05 TICK WIKI/AAPL open: 105.75 close: 102.71\n",
      "2016-01-05 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2016-01-06 TICK WIKI/AAPL open: 100.56 close: 100.7\n",
      "2016-01-06 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2016-01-07 TICK WIKI/AAPL open: 98.68 close: 96.45\n",
      "2016-01-07 BUY signal\n",
      "2016-01-07 ORDER BUY WIKI/AAPL 1\n",
      "2016-01-07 POSITION value:0.000 upnl:0.000 rpnl:6.800\n",
      "2016-01-08 TICK WIKI/AAPL open: 98.55 close: 96.96\n",
      "2016-01-08 FILLED BUY 1 WIKI/AAPL at 98.55\n",
      "2016-01-08 POSITION value:-98.550 upnl:-1.590 rpnl:6.800\n",
      "2016-01-11 TICK WIKI/AAPL open: 98.97 close: 98.53\n",
      "2016-01-11 POSITION value:-98.550 upnl:-0.020 rpnl:6.800\n",
      "2016-01-12 TICK WIKI/AAPL open: 100.55 close: 99.96\n",
      "2016-01-12 POSITION value:-98.550 upnl:1.410 rpnl:6.800\n",
      "2016-01-13 TICK WIKI/AAPL open: 100.32 close: 97.39\n",
      "2016-01-13 POSITION value:-98.550 upnl:-1.160 rpnl:6.800\n",
      "2016-01-14 TICK WIKI/AAPL open: 97.96 close: 99.52\n",
      "2016-01-14 POSITION value:-98.550 upnl:0.970 rpnl:6.800\n",
      "2016-01-15 TICK WIKI/AAPL open: 96.2 close: 97.13\n",
      "2016-01-15 POSITION value:-98.550 upnl:-1.420 rpnl:6.800\n",
      "2016-01-19 TICK WIKI/AAPL open: 98.41 close: 96.66\n",
      "2016-01-19 POSITION value:-98.550 upnl:-1.890 rpnl:6.800\n",
      "2016-01-20 TICK WIKI/AAPL open: 95.1 close: 96.79\n",
      "2016-01-20 POSITION value:-98.550 upnl:-1.760 rpnl:6.800\n",
      "2016-01-21 TICK WIKI/AAPL open: 97.06 close: 96.3\n",
      "2016-01-21 POSITION value:-98.550 upnl:-2.250 rpnl:6.800\n",
      "2016-01-22 TICK WIKI/AAPL open: 98.63 close: 101.42\n",
      "2016-01-22 SELL signal\n",
      "2016-01-22 ORDER SELL WIKI/AAPL 1\n",
      "2016-01-22 POSITION value:-98.550 upnl:2.870 rpnl:6.800\n",
      "2016-01-25 TICK WIKI/AAPL open: 101.52 close: 99.44\n",
      "2016-01-25 FILLED SELL 1 WIKI/AAPL at 101.52\n",
      "2016-01-25 POSITION value:0.000 upnl:0.000 rpnl:2.970\n",
      "2016-01-26 TICK WIKI/AAPL open: 99.93 close: 99.99\n",
      "2016-01-26 POSITION value:0.000 upnl:0.000 rpnl:2.970\n",
      "2016-01-27 TICK WIKI/AAPL open: 96.04 close: 93.42\n",
      "2016-01-27 BUY signal\n",
      "2016-01-27 ORDER BUY WIKI/AAPL 1\n",
      "2016-01-27 POSITION value:0.000 upnl:0.000 rpnl:2.970\n",
      "2016-01-28 TICK WIKI/AAPL open: 93.79 close: 94.09\n",
      "2016-01-28 FILLED BUY 1 WIKI/AAPL at 93.79\n",
      "2016-01-28 POSITION value:-93.790 upnl:0.300 rpnl:2.970\n",
      "2016-01-29 TICK WIKI/AAPL open: 94.79 close: 97.34\n",
      "2016-01-29 POSITION value:-93.790 upnl:3.550 rpnl:2.970\n",
      "2016-02-01 TICK WIKI/AAPL open: 96.47 close: 96.43\n",
      "2016-02-01 POSITION value:-93.790 upnl:2.640 rpnl:2.970\n",
      "2016-02-02 TICK WIKI/AAPL open: 95.42 close: 94.48\n",
      "2016-02-02 POSITION value:-93.790 upnl:0.690 rpnl:2.970\n",
      "2016-02-03 TICK WIKI/AAPL open: 95.0 close: 96.35\n",
      "2016-02-03 POSITION value:-93.790 upnl:2.560 rpnl:2.970\n",
      "2016-02-04 TICK WIKI/AAPL open: 95.86 close: 96.6\n",
      "2016-02-04 POSITION value:-93.790 upnl:2.810 rpnl:2.970\n",
      "2016-02-05 TICK WIKI/AAPL open: 96.52 close: 94.02\n",
      "2016-02-05 POSITION value:-93.790 upnl:0.230 rpnl:2.970\n",
      "2016-02-08 TICK WIKI/AAPL open: 93.13 close: 95.01\n",
      "2016-02-08 POSITION value:-93.790 upnl:1.220 rpnl:2.970\n",
      "2016-02-09 TICK WIKI/AAPL open: 94.29 close: 94.99\n",
      "2016-02-09 POSITION value:-93.790 upnl:1.200 rpnl:2.970\n",
      "2016-02-10 TICK WIKI/AAPL open: 95.92 close: 94.27\n",
      "2016-02-10 POSITION value:-93.790 upnl:0.480 rpnl:2.970\n",
      "2016-02-11 TICK WIKI/AAPL open: 93.79 close: 93.7\n",
      "2016-02-11 POSITION value:-93.790 upnl:-0.090 rpnl:2.970\n",
      "2016-02-12 TICK WIKI/AAPL open: 94.19 close: 93.99\n",
      "2016-02-12 POSITION value:-93.790 upnl:0.200 rpnl:2.970\n",
      "2016-02-16 TICK WIKI/AAPL open: 95.02 close: 96.64\n",
      "2016-02-16 POSITION value:-93.790 upnl:2.850 rpnl:2.970\n",
      "2016-02-17 TICK WIKI/AAPL open: 96.67 close: 98.12\n",
      "2016-02-17 POSITION value:-93.790 upnl:4.330 rpnl:2.970\n",
      "2016-02-18 TICK WIKI/AAPL open: 98.84 close: 96.26\n",
      "2016-02-18 POSITION value:-93.790 upnl:2.470 rpnl:2.970\n",
      "2016-02-19 TICK WIKI/AAPL open: 96.0 close: 96.04\n",
      "2016-02-19 POSITION value:-93.790 upnl:2.250 rpnl:2.970\n",
      "2016-02-22 TICK WIKI/AAPL open: 96.31 close: 96.88\n",
      "2016-02-22 POSITION value:-93.790 upnl:3.090 rpnl:2.970\n",
      "2016-02-23 TICK WIKI/AAPL open: 96.4 close: 94.69\n",
      "2016-02-23 POSITION value:-93.790 upnl:0.900 rpnl:2.970\n",
      "2016-02-24 TICK WIKI/AAPL open: 93.98 close: 96.1\n",
      "2016-02-24 POSITION value:-93.790 upnl:2.310 rpnl:2.970\n",
      "2016-02-25 TICK WIKI/AAPL open: 96.05 close: 96.76\n",
      "2016-02-25 POSITION value:-93.790 upnl:2.970 rpnl:2.970\n",
      "2016-02-26 TICK WIKI/AAPL open: 97.2 close: 96.91\n",
      "2016-02-26 POSITION value:-93.790 upnl:3.120 rpnl:2.970\n",
      "2016-02-29 TICK WIKI/AAPL open: 96.86 close: 96.69\n",
      "2016-02-29 POSITION value:-93.790 upnl:2.900 rpnl:2.970\n",
      "2016-03-01 TICK WIKI/AAPL open: 97.65 close: 100.53\n",
      "2016-03-01 SELL signal\n",
      "2016-03-01 ORDER SELL WIKI/AAPL 1\n",
      "2016-03-01 POSITION value:-93.790 upnl:6.740 rpnl:2.970\n",
      "2016-03-02 TICK WIKI/AAPL open: 100.51 close: 100.75\n",
      "2016-03-02 FILLED SELL 1 WIKI/AAPL at 100.51\n",
      "2016-03-02 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-03 TICK WIKI/AAPL open: 100.58 close: 101.5\n",
      "2016-03-03 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-04 TICK WIKI/AAPL open: 102.37 close: 103.01\n",
      "2016-03-04 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-07 TICK WIKI/AAPL open: 102.39 close: 101.87\n",
      "2016-03-07 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-08 TICK WIKI/AAPL open: 100.78 close: 101.03\n",
      "2016-03-08 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-09 TICK WIKI/AAPL open: 101.31 close: 101.12\n",
      "2016-03-09 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-10 TICK WIKI/AAPL open: 101.41 close: 101.17\n",
      "2016-03-10 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-11 TICK WIKI/AAPL open: 102.24 close: 102.26\n",
      "2016-03-11 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-14 TICK WIKI/AAPL open: 101.91 close: 102.52\n",
      "2016-03-14 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-15 TICK WIKI/AAPL open: 103.96 close: 104.58\n",
      "2016-03-15 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-16 TICK WIKI/AAPL open: 104.61 close: 105.97\n",
      "2016-03-16 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-17 TICK WIKI/AAPL open: 105.52 close: 105.8\n",
      "2016-03-17 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-18 TICK WIKI/AAPL open: 106.34 close: 105.92\n",
      "2016-03-18 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-21 TICK WIKI/AAPL open: 105.93 close: 105.91\n",
      "2016-03-21 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-22 TICK WIKI/AAPL open: 105.25 close: 106.72\n",
      "2016-03-22 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-23 TICK WIKI/AAPL open: 106.48 close: 106.13\n",
      "2016-03-23 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-24 TICK WIKI/AAPL open: 105.47 close: 105.67\n",
      "2016-03-24 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-28 TICK WIKI/AAPL open: 106.0 close: 105.19\n",
      "2016-03-28 POSITION value:0.000 upnl:0.000 rpnl:6.720\n",
      "2016-03-29 TICK WIKI/AAPL open: 104.89 close: 107.68\n",
      "2016-03-29 SELL signal\n",
      "2016-03-29 ORDER SELL WIKI/AAPL 1\n",
      "2016-03-29 POSITION value:0.000 upnl:0.000 rpnl:6.720\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2016-03-30 TICK WIKI/AAPL open: 108.65 close: 109.56\n",
      "2016-03-30 FILLED SELL 1 WIKI/AAPL at 108.65\n",
      "2016-03-30 POSITION value:108.650 upnl:-0.910 rpnl:6.720\n",
      "2016-03-31 TICK WIKI/AAPL open: 109.72 close: 108.99\n",
      "2016-03-31 POSITION value:108.650 upnl:-0.340 rpnl:6.720\n",
      "2016-04-01 TICK WIKI/AAPL open: 108.78 close: 109.99\n",
      "2016-04-01 POSITION value:108.650 upnl:-1.340 rpnl:6.720\n",
      "2016-04-04 TICK WIKI/AAPL open: 110.42 close: 111.12\n",
      "2016-04-04 POSITION value:108.650 upnl:-2.470 rpnl:6.720\n",
      "2016-04-05 TICK WIKI/AAPL open: 109.51 close: 109.81\n",
      "2016-04-05 BUY signal\n",
      "2016-04-05 ORDER BUY WIKI/AAPL 1\n",
      "2016-04-05 POSITION value:108.650 upnl:-1.160 rpnl:6.720\n",
      "2016-04-06 TICK WIKI/AAPL open: 110.23 close: 110.96\n",
      "2016-04-06 FILLED BUY 1 WIKI/AAPL at 110.23\n",
      "2016-04-06 POSITION value:0.000 upnl:0.000 rpnl:-1.580\n",
      "2016-04-07 TICK WIKI/AAPL open: 109.95 close: 108.54\n",
      "2016-04-07 BUY signal\n",
      "2016-04-07 ORDER BUY WIKI/AAPL 1\n",
      "2016-04-07 POSITION value:0.000 upnl:0.000 rpnl:-1.580\n",
      "2016-04-08 TICK WIKI/AAPL open: 108.91 close: 108.66\n",
      "2016-04-08 FILLED BUY 1 WIKI/AAPL at 108.91\n",
      "2016-04-08 POSITION value:-108.910 upnl:-0.250 rpnl:-1.580\n",
      "2016-04-11 TICK WIKI/AAPL open: 108.97 close: 109.02\n",
      "2016-04-11 POSITION value:-108.910 upnl:0.110 rpnl:-1.580\n",
      "2016-04-12 TICK WIKI/AAPL open: 109.34 close: 110.44\n",
      "2016-04-12 POSITION value:-108.910 upnl:1.530 rpnl:-1.580\n",
      "2016-04-13 TICK WIKI/AAPL open: 110.8 close: 112.04\n",
      "2016-04-13 POSITION value:-108.910 upnl:3.130 rpnl:-1.580\n",
      "2016-04-14 TICK WIKI/AAPL open: 111.62 close: 112.1\n",
      "2016-04-14 POSITION value:-108.910 upnl:3.190 rpnl:-1.580\n",
      "2016-04-15 TICK WIKI/AAPL open: 112.11 close: 109.85\n",
      "2016-04-15 POSITION value:-108.910 upnl:0.940 rpnl:-1.580\n",
      "2016-04-18 TICK WIKI/AAPL open: 108.89 close: 107.48\n",
      "2016-04-18 POSITION value:-108.910 upnl:-1.430 rpnl:-1.580\n",
      "2016-04-19 TICK WIKI/AAPL open: 107.88 close: 106.91\n",
      "2016-04-19 POSITION value:-108.910 upnl:-2.000 rpnl:-1.580\n",
      "2016-04-20 TICK WIKI/AAPL open: 106.64 close: 107.13\n",
      "2016-04-20 POSITION value:-108.910 upnl:-1.780 rpnl:-1.580\n",
      "2016-04-21 TICK WIKI/AAPL open: 106.93 close: 105.97\n",
      "2016-04-21 POSITION value:-108.910 upnl:-2.940 rpnl:-1.580\n",
      "2016-04-22 TICK WIKI/AAPL open: 105.01 close: 105.68\n",
      "2016-04-22 POSITION value:-108.910 upnl:-3.230 rpnl:-1.580\n",
      "2016-04-25 TICK WIKI/AAPL open: 105.0 close: 105.08\n",
      "2016-04-25 POSITION value:-108.910 upnl:-3.830 rpnl:-1.580\n",
      "2016-04-26 TICK WIKI/AAPL open: 103.91 close: 104.35\n",
      "2016-04-26 POSITION value:-108.910 upnl:-4.560 rpnl:-1.580\n",
      "2016-04-27 TICK WIKI/AAPL open: 96.0 close: 97.82\n",
      "2016-04-27 POSITION value:-108.910 upnl:-11.090 rpnl:-1.580\n",
      "2016-04-28 TICK WIKI/AAPL open: 97.61 close: 94.83\n",
      "2016-04-28 POSITION value:-108.910 upnl:-14.080 rpnl:-1.580\n",
      "2016-04-29 TICK WIKI/AAPL open: 93.99 close: 93.74\n",
      "2016-04-29 POSITION value:-108.910 upnl:-15.170 rpnl:-1.580\n",
      "2016-05-02 TICK WIKI/AAPL open: 93.965 close: 93.64\n",
      "2016-05-02 POSITION value:-108.910 upnl:-15.270 rpnl:-1.580\n",
      "2016-05-03 TICK WIKI/AAPL open: 94.2 close: 95.18\n",
      "2016-05-03 POSITION value:-108.910 upnl:-13.730 rpnl:-1.580\n",
      "2016-05-04 TICK WIKI/AAPL open: 95.2 close: 94.19\n",
      "2016-05-04 POSITION value:-108.910 upnl:-14.720 rpnl:-1.580\n",
      "2016-05-05 TICK WIKI/AAPL open: 94.0 close: 93.24\n",
      "2016-05-05 POSITION value:-108.910 upnl:-15.670 rpnl:-1.580\n",
      "2016-05-06 TICK WIKI/AAPL open: 93.37 close: 92.72\n",
      "2016-05-06 POSITION value:-108.910 upnl:-16.190 rpnl:-1.580\n",
      "2016-05-09 TICK WIKI/AAPL open: 93.0 close: 92.79\n",
      "2016-05-09 POSITION value:-108.910 upnl:-16.120 rpnl:-1.580\n",
      "2016-05-10 TICK WIKI/AAPL open: 93.33 close: 93.42\n",
      "2016-05-10 POSITION value:-108.910 upnl:-15.490 rpnl:-1.580\n",
      "2016-05-11 TICK WIKI/AAPL open: 93.48 close: 92.51\n",
      "2016-05-11 POSITION value:-108.910 upnl:-16.400 rpnl:-1.580\n",
      "2016-05-12 TICK WIKI/AAPL open: 92.72 close: 90.34\n",
      "2016-05-12 POSITION value:-108.910 upnl:-18.570 rpnl:-1.580\n",
      "2016-05-13 TICK WIKI/AAPL open: 90.0 close: 90.52\n",
      "2016-05-13 POSITION value:-108.910 upnl:-18.390 rpnl:-1.580\n",
      "2016-05-16 TICK WIKI/AAPL open: 92.39 close: 93.88\n",
      "2016-05-16 SELL signal\n",
      "2016-05-16 ORDER SELL WIKI/AAPL 1\n",
      "2016-05-16 POSITION value:-108.910 upnl:-15.030 rpnl:-1.580\n",
      "2016-05-17 TICK WIKI/AAPL open: 94.55 close: 93.49\n",
      "2016-05-17 FILLED SELL 1 WIKI/AAPL at 94.55\n",
      "2016-05-17 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-18 TICK WIKI/AAPL open: 94.16 close: 94.56\n",
      "2016-05-18 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-19 TICK WIKI/AAPL open: 94.64 close: 94.2\n",
      "2016-05-19 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-20 TICK WIKI/AAPL open: 94.64 close: 95.22\n",
      "2016-05-20 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-23 TICK WIKI/AAPL open: 95.87 close: 96.43\n",
      "2016-05-23 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-24 TICK WIKI/AAPL open: 97.22 close: 97.9\n",
      "2016-05-24 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-25 TICK WIKI/AAPL open: 98.67 close: 99.62\n",
      "2016-05-25 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-26 TICK WIKI/AAPL open: 99.68 close: 100.41\n",
      "2016-05-26 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-27 TICK WIKI/AAPL open: 99.44 close: 100.35\n",
      "2016-05-27 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-05-31 TICK WIKI/AAPL open: 99.6 close: 99.86\n",
      "2016-05-31 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-01 TICK WIKI/AAPL open: 99.02 close: 98.46\n",
      "2016-06-01 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-02 TICK WIKI/AAPL open: 97.6 close: 97.72\n",
      "2016-06-02 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-03 TICK WIKI/AAPL open: 97.79 close: 97.92\n",
      "2016-06-03 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-06 TICK WIKI/AAPL open: 97.99 close: 98.63\n",
      "2016-06-06 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-07 TICK WIKI/AAPL open: 99.25 close: 99.03\n",
      "2016-06-07 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-08 TICK WIKI/AAPL open: 99.02 close: 98.94\n",
      "2016-06-08 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-09 TICK WIKI/AAPL open: 98.5 close: 99.65\n",
      "2016-06-09 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-10 TICK WIKI/AAPL open: 98.53 close: 98.83\n",
      "2016-06-10 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-13 TICK WIKI/AAPL open: 98.69 close: 97.34\n",
      "2016-06-13 BUY signal\n",
      "2016-06-13 ORDER BUY WIKI/AAPL 1\n",
      "2016-06-13 POSITION value:0.000 upnl:0.000 rpnl:-14.360\n",
      "2016-06-14 TICK WIKI/AAPL open: 97.32 close: 97.46\n",
      "2016-06-14 FILLED BUY 1 WIKI/AAPL at 97.32\n",
      "2016-06-14 POSITION value:-97.320 upnl:0.140 rpnl:-14.360\n",
      "2016-06-15 TICK WIKI/AAPL open: 97.82 close: 97.14\n",
      "2016-06-15 POSITION value:-97.320 upnl:-0.180 rpnl:-14.360\n",
      "2016-06-16 TICK WIKI/AAPL open: 96.45 close: 97.55\n",
      "2016-06-16 POSITION value:-97.320 upnl:0.230 rpnl:-14.360\n",
      "2016-06-17 TICK WIKI/AAPL open: 96.62 close: 95.33\n",
      "2016-06-17 POSITION value:-97.320 upnl:-1.990 rpnl:-14.360\n",
      "2016-06-20 TICK WIKI/AAPL open: 96.0 close: 95.1\n",
      "2016-06-20 POSITION value:-97.320 upnl:-2.220 rpnl:-14.360\n",
      "2016-06-21 TICK WIKI/AAPL open: 94.94 close: 95.91\n",
      "2016-06-21 POSITION value:-97.320 upnl:-1.410 rpnl:-14.360\n",
      "2016-06-22 TICK WIKI/AAPL open: 96.25 close: 95.55\n",
      "2016-06-22 POSITION value:-97.320 upnl:-1.770 rpnl:-14.360\n",
      "2016-06-23 TICK WIKI/AAPL open: 95.94 close: 96.1\n",
      "2016-06-23 POSITION value:-97.320 upnl:-1.220 rpnl:-14.360\n",
      "2016-06-24 TICK WIKI/AAPL open: 92.91 close: 93.4\n",
      "2016-06-24 POSITION value:-97.320 upnl:-3.920 rpnl:-14.360\n",
      "2016-06-27 TICK WIKI/AAPL open: 93.0 close: 92.04\n",
      "2016-06-27 POSITION value:-97.320 upnl:-5.280 rpnl:-14.360\n",
      "2016-06-28 TICK WIKI/AAPL open: 92.9 close: 93.59\n",
      "2016-06-28 SELL signal\n",
      "2016-06-28 ORDER SELL WIKI/AAPL 1\n",
      "2016-06-28 POSITION value:-97.320 upnl:-3.730 rpnl:-14.360\n",
      "2016-06-29 TICK WIKI/AAPL open: 93.97 close: 94.4\n",
      "2016-06-29 FILLED SELL 1 WIKI/AAPL at 93.97\n",
      "2016-06-29 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-06-30 TICK WIKI/AAPL open: 94.44 close: 95.6\n",
      "2016-06-30 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-01 TICK WIKI/AAPL open: 95.49 close: 95.89\n",
      "2016-07-01 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-05 TICK WIKI/AAPL open: 95.39 close: 94.99\n",
      "2016-07-05 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-06 TICK WIKI/AAPL open: 94.6 close: 95.53\n",
      "2016-07-06 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-07 TICK WIKI/AAPL open: 95.7 close: 95.94\n",
      "2016-07-07 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-08 TICK WIKI/AAPL open: 96.49 close: 96.68\n",
      "2016-07-08 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-11 TICK WIKI/AAPL open: 96.75 close: 96.98\n",
      "2016-07-11 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-12 TICK WIKI/AAPL open: 97.17 close: 97.42\n",
      "2016-07-12 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-13 TICK WIKI/AAPL open: 97.41 close: 96.87\n",
      "2016-07-13 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-14 TICK WIKI/AAPL open: 97.39 close: 98.79\n",
      "2016-07-14 SELL signal\n",
      "2016-07-14 ORDER SELL WIKI/AAPL 1\n",
      "2016-07-14 POSITION value:0.000 upnl:0.000 rpnl:-3.350\n",
      "2016-07-15 TICK WIKI/AAPL open: 98.92 close: 98.78\n",
      "2016-07-15 FILLED SELL 1 WIKI/AAPL at 98.92\n",
      "2016-07-15 POSITION value:98.920 upnl:0.140 rpnl:-3.350\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2016-07-18 TICK WIKI/AAPL open: 98.7 close: 99.83\n",
      "2016-07-18 POSITION value:98.920 upnl:-0.910 rpnl:-3.350\n",
      "2016-07-19 TICK WIKI/AAPL open: 99.56 close: 99.87\n",
      "2016-07-19 POSITION value:98.920 upnl:-0.950 rpnl:-3.350\n",
      "2016-07-20 TICK WIKI/AAPL open: 100.0 close: 99.96\n",
      "2016-07-20 POSITION value:98.920 upnl:-1.040 rpnl:-3.350\n",
      "2016-07-21 TICK WIKI/AAPL open: 99.83 close: 99.43\n",
      "2016-07-21 POSITION value:98.920 upnl:-0.510 rpnl:-3.350\n",
      "2016-07-22 TICK WIKI/AAPL open: 99.26 close: 98.66\n",
      "2016-07-22 POSITION value:98.920 upnl:0.260 rpnl:-3.350\n",
      "2016-07-25 TICK WIKI/AAPL open: 98.25 close: 97.34\n",
      "2016-07-25 BUY signal\n",
      "2016-07-25 ORDER BUY WIKI/AAPL 1\n",
      "2016-07-25 POSITION value:98.920 upnl:1.580 rpnl:-3.350\n",
      "2016-07-26 TICK WIKI/AAPL open: 96.82 close: 96.67\n",
      "2016-07-26 FILLED BUY 1 WIKI/AAPL at 96.82\n",
      "2016-07-26 POSITION value:0.000 upnl:0.000 rpnl:2.100\n",
      "2016-07-27 TICK WIKI/AAPL open: 104.265 close: 102.95\n",
      "2016-07-27 SELL signal\n",
      "2016-07-27 ORDER SELL WIKI/AAPL 1\n",
      "2016-07-27 POSITION value:0.000 upnl:0.000 rpnl:2.100\n",
      "2016-07-28 TICK WIKI/AAPL open: 102.83 close: 104.34\n",
      "2016-07-28 FILLED SELL 1 WIKI/AAPL at 102.83\n",
      "2016-07-28 POSITION value:102.830 upnl:-1.510 rpnl:2.100\n",
      "2016-07-29 TICK WIKI/AAPL open: 104.19 close: 104.21\n",
      "2016-07-29 POSITION value:102.830 upnl:-1.380 rpnl:2.100\n",
      "2016-08-01 TICK WIKI/AAPL open: 104.41 close: 106.05\n",
      "2016-08-01 POSITION value:102.830 upnl:-3.220 rpnl:2.100\n",
      "2016-08-02 TICK WIKI/AAPL open: 106.05 close: 104.48\n",
      "2016-08-02 POSITION value:102.830 upnl:-1.650 rpnl:2.100\n",
      "2016-08-03 TICK WIKI/AAPL open: 104.81 close: 105.79\n",
      "2016-08-03 POSITION value:102.830 upnl:-2.960 rpnl:2.100\n",
      "2016-08-04 TICK WIKI/AAPL open: 105.58 close: 105.87\n",
      "2016-08-04 POSITION value:102.830 upnl:-3.040 rpnl:2.100\n",
      "2016-08-05 TICK WIKI/AAPL open: 106.27 close: 107.48\n",
      "2016-08-05 POSITION value:102.830 upnl:-4.650 rpnl:2.100\n",
      "2016-08-08 TICK WIKI/AAPL open: 107.52 close: 108.37\n",
      "2016-08-08 POSITION value:102.830 upnl:-5.540 rpnl:2.100\n",
      "2016-08-09 TICK WIKI/AAPL open: 108.23 close: 108.81\n",
      "2016-08-09 POSITION value:102.830 upnl:-5.980 rpnl:2.100\n",
      "2016-08-10 TICK WIKI/AAPL open: 108.71 close: 108.0\n",
      "2016-08-10 POSITION value:102.830 upnl:-5.170 rpnl:2.100\n",
      "2016-08-11 TICK WIKI/AAPL open: 108.52 close: 107.93\n",
      "2016-08-11 POSITION value:102.830 upnl:-5.100 rpnl:2.100\n",
      "2016-08-12 TICK WIKI/AAPL open: 107.78 close: 108.18\n",
      "2016-08-12 POSITION value:102.830 upnl:-5.350 rpnl:2.100\n",
      "2016-08-15 TICK WIKI/AAPL open: 108.14 close: 109.48\n",
      "2016-08-15 POSITION value:102.830 upnl:-6.650 rpnl:2.100\n",
      "2016-08-16 TICK WIKI/AAPL open: 109.63 close: 109.38\n",
      "2016-08-16 POSITION value:102.830 upnl:-6.550 rpnl:2.100\n",
      "2016-08-17 TICK WIKI/AAPL open: 109.1 close: 109.22\n",
      "2016-08-17 POSITION value:102.830 upnl:-6.390 rpnl:2.100\n",
      "2016-08-18 TICK WIKI/AAPL open: 109.23 close: 109.08\n",
      "2016-08-18 POSITION value:102.830 upnl:-6.250 rpnl:2.100\n",
      "2016-08-19 TICK WIKI/AAPL open: 108.77 close: 109.36\n",
      "2016-08-19 POSITION value:102.830 upnl:-6.530 rpnl:2.100\n",
      "2016-08-22 TICK WIKI/AAPL open: 108.86 close: 108.51\n",
      "2016-08-22 POSITION value:102.830 upnl:-5.680 rpnl:2.100\n",
      "2016-08-23 TICK WIKI/AAPL open: 108.59 close: 108.85\n",
      "2016-08-23 POSITION value:102.830 upnl:-6.020 rpnl:2.100\n",
      "2016-08-24 TICK WIKI/AAPL open: 108.565 close: 108.03\n",
      "2016-08-24 POSITION value:102.830 upnl:-5.200 rpnl:2.100\n",
      "2016-08-25 TICK WIKI/AAPL open: 107.39 close: 107.57\n",
      "2016-08-25 POSITION value:102.830 upnl:-4.740 rpnl:2.100\n",
      "2016-08-26 TICK WIKI/AAPL open: 107.41 close: 106.94\n",
      "2016-08-26 POSITION value:102.830 upnl:-4.110 rpnl:2.100\n",
      "2016-08-29 TICK WIKI/AAPL open: 106.62 close: 106.82\n",
      "2016-08-29 POSITION value:102.830 upnl:-3.990 rpnl:2.100\n",
      "2016-08-30 TICK WIKI/AAPL open: 105.8 close: 106.0\n",
      "2016-08-30 POSITION value:102.830 upnl:-3.170 rpnl:2.100\n",
      "2016-08-31 TICK WIKI/AAPL open: 105.66 close: 106.1\n",
      "2016-08-31 POSITION value:102.830 upnl:-3.270 rpnl:2.100\n",
      "2016-09-01 TICK WIKI/AAPL open: 106.14 close: 106.73\n",
      "2016-09-01 POSITION value:102.830 upnl:-3.900 rpnl:2.100\n",
      "2016-09-02 TICK WIKI/AAPL open: 107.7 close: 107.73\n",
      "2016-09-02 POSITION value:102.830 upnl:-4.900 rpnl:2.100\n",
      "2016-09-06 TICK WIKI/AAPL open: 107.9 close: 107.7\n",
      "2016-09-06 POSITION value:102.830 upnl:-4.870 rpnl:2.100\n",
      "2016-09-07 TICK WIKI/AAPL open: 107.83 close: 108.36\n",
      "2016-09-07 POSITION value:102.830 upnl:-5.530 rpnl:2.100\n",
      "2016-09-08 TICK WIKI/AAPL open: 107.25 close: 105.52\n",
      "2016-09-08 BUY signal\n",
      "2016-09-08 ORDER BUY WIKI/AAPL 1\n",
      "2016-09-08 POSITION value:102.830 upnl:-2.690 rpnl:2.100\n",
      "2016-09-09 TICK WIKI/AAPL open: 104.64 close: 103.13\n",
      "2016-09-09 FILLED BUY 1 WIKI/AAPL at 104.64\n",
      "2016-09-09 BUY signal\n",
      "2016-09-09 ORDER BUY WIKI/AAPL 1\n",
      "2016-09-09 POSITION value:0.000 upnl:0.000 rpnl:-1.810\n",
      "2016-09-12 TICK WIKI/AAPL open: 102.65 close: 105.44\n",
      "2016-09-12 FILLED BUY 1 WIKI/AAPL at 102.65\n",
      "2016-09-12 SELL signal\n",
      "2016-09-12 ORDER SELL WIKI/AAPL 1\n",
      "2016-09-12 POSITION value:-102.650 upnl:2.790 rpnl:-1.810\n",
      "2016-09-13 TICK WIKI/AAPL open: 107.51 close: 107.95\n",
      "2016-09-13 FILLED SELL 1 WIKI/AAPL at 107.51\n",
      "2016-09-13 SELL signal\n",
      "2016-09-13 ORDER SELL WIKI/AAPL 1\n",
      "2016-09-13 POSITION value:0.000 upnl:0.000 rpnl:4.860\n",
      "2016-09-14 TICK WIKI/AAPL open: 108.73 close: 111.77\n",
      "2016-09-14 FILLED SELL 1 WIKI/AAPL at 108.73\n",
      "2016-09-14 POSITION value:108.730 upnl:-3.040 rpnl:4.860\n",
      "2016-09-15 TICK WIKI/AAPL open: 113.86 close: 115.57\n",
      "2016-09-15 POSITION value:108.730 upnl:-6.840 rpnl:4.860\n",
      "2016-09-16 TICK WIKI/AAPL open: 115.12 close: 114.92\n",
      "2016-09-16 POSITION value:108.730 upnl:-6.190 rpnl:4.860\n",
      "2016-09-19 TICK WIKI/AAPL open: 115.19 close: 113.58\n",
      "2016-09-19 POSITION value:108.730 upnl:-4.850 rpnl:4.860\n",
      "2016-09-20 TICK WIKI/AAPL open: 113.05 close: 113.57\n",
      "2016-09-20 POSITION value:108.730 upnl:-4.840 rpnl:4.860\n",
      "2016-09-21 TICK WIKI/AAPL open: 113.85 close: 113.55\n",
      "2016-09-21 POSITION value:108.730 upnl:-4.820 rpnl:4.860\n",
      "2016-09-22 TICK WIKI/AAPL open: 114.35 close: 114.62\n",
      "2016-09-22 POSITION value:108.730 upnl:-5.890 rpnl:4.860\n",
      "2016-09-23 TICK WIKI/AAPL open: 114.42 close: 112.71\n",
      "2016-09-23 POSITION value:108.730 upnl:-3.980 rpnl:4.860\n",
      "2016-09-26 TICK WIKI/AAPL open: 111.64 close: 112.88\n",
      "2016-09-26 POSITION value:108.730 upnl:-4.150 rpnl:4.860\n",
      "2016-09-27 TICK WIKI/AAPL open: 113.0 close: 113.09\n",
      "2016-09-27 POSITION value:108.730 upnl:-4.360 rpnl:4.860\n",
      "2016-09-28 TICK WIKI/AAPL open: 113.69 close: 113.95\n",
      "2016-09-28 POSITION value:108.730 upnl:-5.220 rpnl:4.860\n",
      "2016-09-29 TICK WIKI/AAPL open: 113.16 close: 112.18\n",
      "2016-09-29 POSITION value:108.730 upnl:-3.450 rpnl:4.860\n",
      "2016-09-30 TICK WIKI/AAPL open: 112.46 close: 113.05\n",
      "2016-09-30 POSITION value:108.730 upnl:-4.320 rpnl:4.860\n",
      "2016-10-03 TICK WIKI/AAPL open: 112.71 close: 112.52\n",
      "2016-10-03 POSITION value:108.730 upnl:-3.790 rpnl:4.860\n",
      "2016-10-04 TICK WIKI/AAPL open: 113.06 close: 113.0\n",
      "2016-10-04 POSITION value:108.730 upnl:-4.270 rpnl:4.860\n",
      "2016-10-05 TICK WIKI/AAPL open: 113.4 close: 113.05\n",
      "2016-10-05 POSITION value:108.730 upnl:-4.320 rpnl:4.860\n",
      "2016-10-06 TICK WIKI/AAPL open: 113.7 close: 113.89\n",
      "2016-10-06 POSITION value:108.730 upnl:-5.160 rpnl:4.860\n",
      "2016-10-07 TICK WIKI/AAPL open: 114.31 close: 114.06\n",
      "2016-10-07 POSITION value:108.730 upnl:-5.330 rpnl:4.860\n",
      "2016-10-10 TICK WIKI/AAPL open: 115.02 close: 116.05\n",
      "2016-10-10 POSITION value:108.730 upnl:-7.320 rpnl:4.860\n",
      "2016-10-11 TICK WIKI/AAPL open: 117.7 close: 116.3\n",
      "2016-10-11 POSITION value:108.730 upnl:-7.570 rpnl:4.860\n",
      "2016-10-12 TICK WIKI/AAPL open: 117.35 close: 117.34\n",
      "2016-10-12 POSITION value:108.730 upnl:-8.610 rpnl:4.860\n",
      "2016-10-13 TICK WIKI/AAPL open: 116.79 close: 116.98\n",
      "2016-10-13 POSITION value:108.730 upnl:-8.250 rpnl:4.860\n",
      "2016-10-14 TICK WIKI/AAPL open: 117.88 close: 117.63\n",
      "2016-10-14 POSITION value:108.730 upnl:-8.900 rpnl:4.860\n",
      "2016-10-17 TICK WIKI/AAPL open: 117.33 close: 117.55\n",
      "2016-10-17 POSITION value:108.730 upnl:-8.820 rpnl:4.860\n",
      "2016-10-18 TICK WIKI/AAPL open: 118.18 close: 117.47\n",
      "2016-10-18 POSITION value:108.730 upnl:-8.740 rpnl:4.860\n",
      "2016-10-19 TICK WIKI/AAPL open: 117.25 close: 117.12\n",
      "2016-10-19 POSITION value:108.730 upnl:-8.390 rpnl:4.860\n",
      "2016-10-20 TICK WIKI/AAPL open: 116.86 close: 117.06\n",
      "2016-10-20 POSITION value:108.730 upnl:-8.330 rpnl:4.860\n",
      "2016-10-21 TICK WIKI/AAPL open: 116.81 close: 116.6\n",
      "2016-10-21 POSITION value:108.730 upnl:-7.870 rpnl:4.860\n",
      "2016-10-24 TICK WIKI/AAPL open: 117.1 close: 117.65\n",
      "2016-10-24 POSITION value:108.730 upnl:-8.920 rpnl:4.860\n",
      "2016-10-25 TICK WIKI/AAPL open: 117.95 close: 118.25\n",
      "2016-10-25 POSITION value:108.730 upnl:-9.520 rpnl:4.860\n",
      "2016-10-26 TICK WIKI/AAPL open: 114.31 close: 115.59\n",
      "2016-10-26 BUY signal\n",
      "2016-10-26 ORDER BUY WIKI/AAPL 1\n",
      "2016-10-26 POSITION value:108.730 upnl:-6.860 rpnl:4.860\n",
      "2016-10-27 TICK WIKI/AAPL open: 115.39 close: 114.48\n",
      "2016-10-27 FILLED BUY 1 WIKI/AAPL at 115.39\n",
      "2016-10-27 POSITION value:0.000 upnl:0.000 rpnl:-6.660\n",
      "2016-10-28 TICK WIKI/AAPL open: 113.87 close: 113.72\n",
      "2016-10-28 POSITION value:0.000 upnl:0.000 rpnl:-6.660\n",
      "2016-10-31 TICK WIKI/AAPL open: 113.65 close: 113.54\n",
      "2016-10-31 POSITION value:0.000 upnl:0.000 rpnl:-6.660\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2016-11-01 TICK WIKI/AAPL open: 113.46 close: 111.49\n",
      "2016-11-01 BUY signal\n",
      "2016-11-01 ORDER BUY WIKI/AAPL 1\n",
      "2016-11-01 POSITION value:0.000 upnl:0.000 rpnl:-6.660\n",
      "2016-11-02 TICK WIKI/AAPL open: 111.4 close: 111.59\n",
      "2016-11-02 FILLED BUY 1 WIKI/AAPL at 111.4\n",
      "2016-11-02 POSITION value:-111.400 upnl:0.190 rpnl:-6.660\n",
      "2016-11-03 TICK WIKI/AAPL open: 110.98 close: 109.83\n",
      "2016-11-03 POSITION value:-111.400 upnl:-1.570 rpnl:-6.660\n",
      "2016-11-04 TICK WIKI/AAPL open: 108.53 close: 108.84\n",
      "2016-11-04 POSITION value:-111.400 upnl:-2.560 rpnl:-6.660\n",
      "2016-11-07 TICK WIKI/AAPL open: 110.08 close: 110.41\n",
      "2016-11-07 SELL signal\n",
      "2016-11-07 ORDER SELL WIKI/AAPL 1\n",
      "2016-11-07 POSITION value:-111.400 upnl:-0.990 rpnl:-6.660\n",
      "2016-11-08 TICK WIKI/AAPL open: 110.31 close: 111.06\n",
      "2016-11-08 FILLED SELL 1 WIKI/AAPL at 110.31\n",
      "2016-11-08 POSITION value:0.000 upnl:0.000 rpnl:-1.090\n",
      "2016-11-09 TICK WIKI/AAPL open: 109.88 close: 110.88\n",
      "2016-11-09 POSITION value:0.000 upnl:0.000 rpnl:-1.090\n",
      "2016-11-10 TICK WIKI/AAPL open: 111.09 close: 107.79\n",
      "2016-11-10 BUY signal\n",
      "2016-11-10 ORDER BUY WIKI/AAPL 1\n",
      "2016-11-10 POSITION value:0.000 upnl:0.000 rpnl:-1.090\n",
      "2016-11-11 TICK WIKI/AAPL open: 106.92 close: 108.43\n",
      "2016-11-11 FILLED BUY 1 WIKI/AAPL at 106.92\n",
      "2016-11-11 POSITION value:-106.920 upnl:1.510 rpnl:-1.090\n",
      "2016-11-14 TICK WIKI/AAPL open: 107.32 close: 105.71\n",
      "2016-11-14 POSITION value:-106.920 upnl:-1.210 rpnl:-1.090\n",
      "2016-11-15 TICK WIKI/AAPL open: 106.57 close: 107.11\n",
      "2016-11-15 POSITION value:-106.920 upnl:0.190 rpnl:-1.090\n",
      "2016-11-16 TICK WIKI/AAPL open: 106.7 close: 109.99\n",
      "2016-11-16 SELL signal\n",
      "2016-11-16 ORDER SELL WIKI/AAPL 1\n",
      "2016-11-16 POSITION value:-106.920 upnl:3.070 rpnl:-1.090\n",
      "2016-11-17 TICK WIKI/AAPL open: 109.81 close: 109.95\n",
      "2016-11-17 FILLED SELL 1 WIKI/AAPL at 109.81\n",
      "2016-11-17 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-11-18 TICK WIKI/AAPL open: 109.72 close: 110.06\n",
      "2016-11-18 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-11-21 TICK WIKI/AAPL open: 110.12 close: 111.73\n",
      "2016-11-21 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-11-22 TICK WIKI/AAPL open: 111.95 close: 111.8\n",
      "2016-11-22 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-11-23 TICK WIKI/AAPL open: 111.36 close: 111.23\n",
      "2016-11-23 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-11-25 TICK WIKI/AAPL open: 111.13 close: 111.79\n",
      "2016-11-25 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-11-28 TICK WIKI/AAPL open: 111.43 close: 111.57\n",
      "2016-11-28 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-11-29 TICK WIKI/AAPL open: 110.78 close: 111.46\n",
      "2016-11-29 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-11-30 TICK WIKI/AAPL open: 111.56 close: 110.52\n",
      "2016-11-30 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-01 TICK WIKI/AAPL open: 110.365 close: 109.49\n",
      "2016-12-01 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-02 TICK WIKI/AAPL open: 109.17 close: 109.9\n",
      "2016-12-02 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-05 TICK WIKI/AAPL open: 110.0 close: 109.11\n",
      "2016-12-05 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-06 TICK WIKI/AAPL open: 109.5 close: 109.95\n",
      "2016-12-06 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-07 TICK WIKI/AAPL open: 109.26 close: 111.03\n",
      "2016-12-07 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-08 TICK WIKI/AAPL open: 110.86 close: 112.12\n",
      "2016-12-08 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-09 TICK WIKI/AAPL open: 112.31 close: 113.95\n",
      "2016-12-09 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-12 TICK WIKI/AAPL open: 113.29 close: 113.3\n",
      "2016-12-12 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-13 TICK WIKI/AAPL open: 113.84 close: 115.19\n",
      "2016-12-13 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-14 TICK WIKI/AAPL open: 115.04 close: 115.19\n",
      "2016-12-14 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-15 TICK WIKI/AAPL open: 115.38 close: 115.82\n",
      "2016-12-15 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-16 TICK WIKI/AAPL open: 116.47 close: 115.97\n",
      "2016-12-16 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-19 TICK WIKI/AAPL open: 115.8 close: 116.64\n",
      "2016-12-19 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-20 TICK WIKI/AAPL open: 116.74 close: 116.95\n",
      "2016-12-20 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-21 TICK WIKI/AAPL open: 116.8 close: 117.06\n",
      "2016-12-21 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-22 TICK WIKI/AAPL open: 116.35 close: 116.29\n",
      "2016-12-22 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-23 TICK WIKI/AAPL open: 115.59 close: 116.52\n",
      "2016-12-23 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-27 TICK WIKI/AAPL open: 116.52 close: 117.26\n",
      "2016-12-27 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-28 TICK WIKI/AAPL open: 117.52 close: 116.76\n",
      "2016-12-28 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-29 TICK WIKI/AAPL open: 116.45 close: 116.73\n",
      "2016-12-29 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2016-12-30 TICK WIKI/AAPL open: 116.65 close: 115.82\n",
      "2016-12-30 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-03 TICK WIKI/AAPL open: 115.8 close: 116.15\n",
      "2017-01-03 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-04 TICK WIKI/AAPL open: 115.85 close: 116.02\n",
      "2017-01-04 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-05 TICK WIKI/AAPL open: 115.92 close: 116.61\n",
      "2017-01-05 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-06 TICK WIKI/AAPL open: 116.78 close: 117.91\n",
      "2017-01-06 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-09 TICK WIKI/AAPL open: 117.95 close: 118.99\n",
      "2017-01-09 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-10 TICK WIKI/AAPL open: 118.77 close: 119.11\n",
      "2017-01-10 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-11 TICK WIKI/AAPL open: 118.74 close: 119.75\n",
      "2017-01-11 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-12 TICK WIKI/AAPL open: 118.895 close: 119.25\n",
      "2017-01-12 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-13 TICK WIKI/AAPL open: 119.11 close: 119.04\n",
      "2017-01-13 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-17 TICK WIKI/AAPL open: 118.34 close: 120.0\n",
      "2017-01-17 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-18 TICK WIKI/AAPL open: 120.0 close: 119.99\n",
      "2017-01-18 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-19 TICK WIKI/AAPL open: 119.4 close: 119.78\n",
      "2017-01-19 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-20 TICK WIKI/AAPL open: 120.45 close: 120.0\n",
      "2017-01-20 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-23 TICK WIKI/AAPL open: 120.0 close: 120.08\n",
      "2017-01-23 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-24 TICK WIKI/AAPL open: 119.55 close: 119.97\n",
      "2017-01-24 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-25 TICK WIKI/AAPL open: 120.42 close: 121.88\n",
      "2017-01-25 SELL signal\n",
      "2017-01-25 ORDER SELL WIKI/AAPL 1\n",
      "2017-01-25 POSITION value:0.000 upnl:0.000 rpnl:2.890\n",
      "2017-01-26 TICK WIKI/AAPL open: 121.67 close: 121.94\n",
      "2017-01-26 FILLED SELL 1 WIKI/AAPL at 121.67\n",
      "2017-01-26 POSITION value:121.670 upnl:-0.270 rpnl:2.890\n",
      "2017-01-27 TICK WIKI/AAPL open: 122.14 close: 121.95\n",
      "2017-01-27 POSITION value:121.670 upnl:-0.280 rpnl:2.890\n",
      "2017-01-30 TICK WIKI/AAPL open: 120.93 close: 121.63\n",
      "2017-01-30 POSITION value:121.670 upnl:0.040 rpnl:2.890\n",
      "2017-01-31 TICK WIKI/AAPL open: 121.15 close: 121.35\n",
      "2017-01-31 POSITION value:121.670 upnl:0.320 rpnl:2.890\n",
      "2017-02-01 TICK WIKI/AAPL open: 127.03 close: 128.75\n",
      "2017-02-01 POSITION value:121.670 upnl:-7.080 rpnl:2.890\n",
      "2017-02-02 TICK WIKI/AAPL open: 127.975 close: 128.53\n",
      "2017-02-02 POSITION value:121.670 upnl:-6.860 rpnl:2.890\n",
      "2017-02-03 TICK WIKI/AAPL open: 128.31 close: 129.08\n",
      "2017-02-03 POSITION value:121.670 upnl:-7.410 rpnl:2.890\n",
      "2017-02-06 TICK WIKI/AAPL open: 129.13 close: 130.29\n",
      "2017-02-06 POSITION value:121.670 upnl:-8.620 rpnl:2.890\n",
      "2017-02-07 TICK WIKI/AAPL open: 130.54 close: 131.53\n",
      "2017-02-07 POSITION value:121.670 upnl:-9.860 rpnl:2.890\n",
      "2017-02-08 TICK WIKI/AAPL open: 131.35 close: 132.04\n",
      "2017-02-08 POSITION value:121.670 upnl:-10.370 rpnl:2.890\n",
      "2017-02-09 TICK WIKI/AAPL open: 131.65 close: 132.42\n",
      "2017-02-09 POSITION value:121.670 upnl:-10.750 rpnl:2.890\n",
      "2017-02-10 TICK WIKI/AAPL open: 132.46 close: 132.12\n",
      "2017-02-10 POSITION value:121.670 upnl:-10.450 rpnl:2.890\n",
      "2017-02-13 TICK WIKI/AAPL open: 133.08 close: 133.29\n",
      "2017-02-13 POSITION value:121.670 upnl:-11.620 rpnl:2.890\n",
      "2017-02-14 TICK WIKI/AAPL open: 133.47 close: 135.02\n",
      "2017-02-14 POSITION value:121.670 upnl:-13.350 rpnl:2.890\n",
      "2017-02-15 TICK WIKI/AAPL open: 135.52 close: 135.51\n",
      "2017-02-15 POSITION value:121.670 upnl:-13.840 rpnl:2.890\n",
      "2017-02-16 TICK WIKI/AAPL open: 135.67 close: 135.345\n",
      "2017-02-16 POSITION value:121.670 upnl:-13.675 rpnl:2.890\n",
      "2017-02-17 TICK WIKI/AAPL open: 135.1 close: 135.72\n",
      "2017-02-17 POSITION value:121.670 upnl:-14.050 rpnl:2.890\n",
      "2017-02-21 TICK WIKI/AAPL open: 136.23 close: 136.7\n",
      "2017-02-21 POSITION value:121.670 upnl:-15.030 rpnl:2.890\n",
      "2017-02-22 TICK WIKI/AAPL open: 136.43 close: 137.11\n",
      "2017-02-22 POSITION value:121.670 upnl:-15.440 rpnl:2.890\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2017-02-23 TICK WIKI/AAPL open: 137.38 close: 136.53\n",
      "2017-02-23 POSITION value:121.670 upnl:-14.860 rpnl:2.890\n",
      "2017-02-24 TICK WIKI/AAPL open: 135.91 close: 136.66\n",
      "2017-02-24 POSITION value:121.670 upnl:-14.990 rpnl:2.890\n",
      "2017-02-27 TICK WIKI/AAPL open: 137.14 close: 136.93\n",
      "2017-02-27 POSITION value:121.670 upnl:-15.260 rpnl:2.890\n",
      "2017-02-28 TICK WIKI/AAPL open: 137.08 close: 136.99\n",
      "2017-02-28 POSITION value:121.670 upnl:-15.320 rpnl:2.890\n",
      "2017-03-01 TICK WIKI/AAPL open: 137.89 close: 139.79\n",
      "2017-03-01 POSITION value:121.670 upnl:-18.120 rpnl:2.890\n",
      "2017-03-02 TICK WIKI/AAPL open: 140.0 close: 138.96\n",
      "2017-03-02 BUY signal\n",
      "2017-03-02 ORDER BUY WIKI/AAPL 1\n",
      "2017-03-02 POSITION value:121.670 upnl:-17.290 rpnl:2.890\n",
      "2017-03-03 TICK WIKI/AAPL open: 138.78 close: 139.78\n",
      "2017-03-03 FILLED BUY 1 WIKI/AAPL at 138.78\n",
      "2017-03-03 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-06 TICK WIKI/AAPL open: 139.365 close: 139.34\n",
      "2017-03-06 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-07 TICK WIKI/AAPL open: 139.06 close: 139.52\n",
      "2017-03-07 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-08 TICK WIKI/AAPL open: 138.95 close: 139.0\n",
      "2017-03-08 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-09 TICK WIKI/AAPL open: 138.74 close: 138.68\n",
      "2017-03-09 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-10 TICK WIKI/AAPL open: 139.25 close: 139.14\n",
      "2017-03-10 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-13 TICK WIKI/AAPL open: 138.85 close: 139.2\n",
      "2017-03-13 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-14 TICK WIKI/AAPL open: 139.3 close: 138.99\n",
      "2017-03-14 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-15 TICK WIKI/AAPL open: 139.41 close: 140.46\n",
      "2017-03-15 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-16 TICK WIKI/AAPL open: 140.72 close: 140.69\n",
      "2017-03-16 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-17 TICK WIKI/AAPL open: 141.0 close: 139.99\n",
      "2017-03-17 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-20 TICK WIKI/AAPL open: 140.4 close: 141.46\n",
      "2017-03-20 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-21 TICK WIKI/AAPL open: 142.11 close: 139.84\n",
      "2017-03-21 BUY signal\n",
      "2017-03-21 ORDER BUY WIKI/AAPL 1\n",
      "2017-03-21 POSITION value:0.000 upnl:0.000 rpnl:-17.110\n",
      "2017-03-22 TICK WIKI/AAPL open: 139.845 close: 141.42\n",
      "2017-03-22 FILLED BUY 1 WIKI/AAPL at 139.845\n",
      "2017-03-22 POSITION value:-139.845 upnl:1.575 rpnl:-17.110\n",
      "2017-03-23 TICK WIKI/AAPL open: 141.26 close: 140.92\n",
      "2017-03-23 POSITION value:-139.845 upnl:1.075 rpnl:-17.110\n",
      "2017-03-24 TICK WIKI/AAPL open: 141.5 close: 140.64\n",
      "2017-03-24 POSITION value:-139.845 upnl:0.795 rpnl:-17.110\n",
      "2017-03-27 TICK WIKI/AAPL open: 139.39 close: 140.88\n",
      "2017-03-27 POSITION value:-139.845 upnl:1.035 rpnl:-17.110\n",
      "2017-03-28 TICK WIKI/AAPL open: 140.91 close: 143.8\n",
      "2017-03-28 SELL signal\n",
      "2017-03-28 ORDER SELL WIKI/AAPL 1\n",
      "2017-03-28 POSITION value:-139.845 upnl:3.955 rpnl:-17.110\n",
      "2017-03-29 TICK WIKI/AAPL open: 143.68 close: 144.12\n",
      "2017-03-29 FILLED SELL 1 WIKI/AAPL at 143.68\n",
      "2017-03-29 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-03-30 TICK WIKI/AAPL open: 144.19 close: 143.93\n",
      "2017-03-30 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-03-31 TICK WIKI/AAPL open: 143.72 close: 143.66\n",
      "2017-03-31 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-03 TICK WIKI/AAPL open: 143.71 close: 143.7\n",
      "2017-04-03 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-04 TICK WIKI/AAPL open: 143.25 close: 144.77\n",
      "2017-04-04 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-05 TICK WIKI/AAPL open: 144.22 close: 144.02\n",
      "2017-04-05 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-06 TICK WIKI/AAPL open: 144.29 close: 143.66\n",
      "2017-04-06 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-07 TICK WIKI/AAPL open: 143.73 close: 143.34\n",
      "2017-04-07 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-10 TICK WIKI/AAPL open: 143.6 close: 143.17\n",
      "2017-04-10 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-11 TICK WIKI/AAPL open: 142.94 close: 141.63\n",
      "2017-04-11 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-12 TICK WIKI/AAPL open: 141.6 close: 141.8\n",
      "2017-04-12 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-13 TICK WIKI/AAPL open: 141.91 close: 141.05\n",
      "2017-04-13 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-17 TICK WIKI/AAPL open: 141.48 close: 141.83\n",
      "2017-04-17 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-18 TICK WIKI/AAPL open: 141.41 close: 141.2\n",
      "2017-04-18 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-19 TICK WIKI/AAPL open: 141.88 close: 140.68\n",
      "2017-04-19 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-20 TICK WIKI/AAPL open: 141.22 close: 142.44\n",
      "2017-04-20 SELL signal\n",
      "2017-04-20 ORDER SELL WIKI/AAPL 1\n",
      "2017-04-20 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-21 TICK WIKI/AAPL open: 142.44 close: 142.27\n",
      "2017-04-21 FILLED SELL 1 WIKI/AAPL at 142.44\n",
      "2017-04-21 POSITION value:142.440 upnl:0.170 rpnl:3.835\n",
      "2017-04-24 TICK WIKI/AAPL open: 143.5 close: 143.64\n",
      "2017-04-24 POSITION value:142.440 upnl:-1.200 rpnl:3.835\n",
      "2017-04-25 TICK WIKI/AAPL open: 143.91 close: 144.54\n",
      "2017-04-25 POSITION value:142.440 upnl:-2.100 rpnl:3.835\n",
      "2017-04-26 TICK WIKI/AAPL open: 144.47 close: 143.6508\n",
      "2017-04-26 POSITION value:142.440 upnl:-1.211 rpnl:3.835\n",
      "2017-04-27 TICK WIKI/AAPL open: 143.9225 close: 143.79\n",
      "2017-04-27 POSITION value:142.440 upnl:-1.350 rpnl:3.835\n",
      "2017-04-28 TICK WIKI/AAPL open: 144.09 close: 143.65\n",
      "2017-04-28 POSITION value:142.440 upnl:-1.210 rpnl:3.835\n",
      "2017-05-01 TICK WIKI/AAPL open: 145.1 close: 146.6\n",
      "2017-05-01 POSITION value:142.440 upnl:-4.160 rpnl:3.835\n",
      "2017-05-02 TICK WIKI/AAPL open: 147.54 close: 147.51\n",
      "2017-05-02 POSITION value:142.440 upnl:-5.070 rpnl:3.835\n",
      "2017-05-03 TICK WIKI/AAPL open: 145.59 close: 147.06\n",
      "2017-05-03 POSITION value:142.440 upnl:-4.620 rpnl:3.835\n",
      "2017-05-04 TICK WIKI/AAPL open: 146.52 close: 146.53\n",
      "2017-05-04 POSITION value:142.440 upnl:-4.090 rpnl:3.835\n",
      "2017-05-05 TICK WIKI/AAPL open: 146.76 close: 148.96\n",
      "2017-05-05 POSITION value:142.440 upnl:-6.520 rpnl:3.835\n",
      "2017-05-08 TICK WIKI/AAPL open: 149.03 close: 153.0\n",
      "2017-05-08 POSITION value:142.440 upnl:-10.560 rpnl:3.835\n",
      "2017-05-09 TICK WIKI/AAPL open: 153.87 close: 153.96\n",
      "2017-05-09 POSITION value:142.440 upnl:-11.520 rpnl:3.835\n",
      "2017-05-10 TICK WIKI/AAPL open: 153.63 close: 153.26\n",
      "2017-05-10 POSITION value:142.440 upnl:-10.820 rpnl:3.835\n",
      "2017-05-11 TICK WIKI/AAPL open: 152.45 close: 153.95\n",
      "2017-05-11 POSITION value:142.440 upnl:-11.510 rpnl:3.835\n",
      "2017-05-12 TICK WIKI/AAPL open: 154.7 close: 156.1\n",
      "2017-05-12 POSITION value:142.440 upnl:-13.660 rpnl:3.835\n",
      "2017-05-15 TICK WIKI/AAPL open: 156.01 close: 155.7\n",
      "2017-05-15 POSITION value:142.440 upnl:-13.260 rpnl:3.835\n",
      "2017-05-16 TICK WIKI/AAPL open: 155.94 close: 155.47\n",
      "2017-05-16 POSITION value:142.440 upnl:-13.030 rpnl:3.835\n",
      "2017-05-17 TICK WIKI/AAPL open: 153.6 close: 150.25\n",
      "2017-05-17 BUY signal\n",
      "2017-05-17 ORDER BUY WIKI/AAPL 1\n",
      "2017-05-17 POSITION value:142.440 upnl:-7.810 rpnl:3.835\n",
      "2017-05-18 TICK WIKI/AAPL open: 151.27 close: 152.54\n",
      "2017-05-18 FILLED BUY 1 WIKI/AAPL at 151.27\n",
      "2017-05-18 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-05-19 TICK WIKI/AAPL open: 153.38 close: 152.96\n",
      "2017-05-19 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-05-22 TICK WIKI/AAPL open: 154.0 close: 153.99\n",
      "2017-05-22 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-05-23 TICK WIKI/AAPL open: 154.9 close: 153.8\n",
      "2017-05-23 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-05-24 TICK WIKI/AAPL open: 153.84 close: 153.34\n",
      "2017-05-24 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-05-25 TICK WIKI/AAPL open: 153.73 close: 153.87\n",
      "2017-05-25 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-05-26 TICK WIKI/AAPL open: 154.0 close: 153.61\n",
      "2017-05-26 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-05-30 TICK WIKI/AAPL open: 153.42 close: 153.67\n",
      "2017-05-30 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-05-31 TICK WIKI/AAPL open: 153.97 close: 152.76\n",
      "2017-05-31 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-06-01 TICK WIKI/AAPL open: 153.17 close: 153.18\n",
      "2017-06-01 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-06-02 TICK WIKI/AAPL open: 153.58 close: 155.45\n",
      "2017-06-02 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-06-05 TICK WIKI/AAPL open: 154.34 close: 153.93\n",
      "2017-06-05 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-06-06 TICK WIKI/AAPL open: 153.9 close: 154.45\n",
      "2017-06-06 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-06-07 TICK WIKI/AAPL open: 155.02 close: 155.37\n",
      "2017-06-07 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-06-08 TICK WIKI/AAPL open: 155.25 close: 154.99\n",
      "2017-06-08 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-06-09 TICK WIKI/AAPL open: 155.19 close: 148.98\n",
      "2017-06-09 BUY signal\n",
      "2017-06-09 ORDER BUY WIKI/AAPL 1\n",
      "2017-06-09 POSITION value:0.000 upnl:0.000 rpnl:-8.830\n",
      "2017-06-12 TICK WIKI/AAPL open: 145.74 close: 145.32\n",
      "2017-06-12 FILLED BUY 1 WIKI/AAPL at 145.74\n",
      "2017-06-12 POSITION value:-145.740 upnl:-0.420 rpnl:-8.830\n",
      "2017-06-13 TICK WIKI/AAPL open: 147.16 close: 146.59\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2017-06-13 POSITION value:-145.740 upnl:0.850 rpnl:-8.830\n",
      "2017-06-14 TICK WIKI/AAPL open: 147.5 close: 145.16\n",
      "2017-06-14 POSITION value:-145.740 upnl:-0.580 rpnl:-8.830\n",
      "2017-06-15 TICK WIKI/AAPL open: 143.32 close: 144.29\n",
      "2017-06-15 POSITION value:-145.740 upnl:-1.450 rpnl:-8.830\n",
      "2017-06-16 TICK WIKI/AAPL open: 143.78 close: 142.27\n",
      "2017-06-16 POSITION value:-145.740 upnl:-3.470 rpnl:-8.830\n",
      "2017-06-19 TICK WIKI/AAPL open: 143.66 close: 146.34\n",
      "2017-06-19 SELL signal\n",
      "2017-06-19 ORDER SELL WIKI/AAPL 1\n",
      "2017-06-19 POSITION value:-145.740 upnl:0.600 rpnl:-8.830\n",
      "2017-06-20 TICK WIKI/AAPL open: 146.87 close: 145.01\n",
      "2017-06-20 FILLED SELL 1 WIKI/AAPL at 146.87\n",
      "2017-06-20 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-21 TICK WIKI/AAPL open: 145.52 close: 145.87\n",
      "2017-06-21 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-22 TICK WIKI/AAPL open: 145.77 close: 145.63\n",
      "2017-06-22 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-23 TICK WIKI/AAPL open: 145.13 close: 146.35\n",
      "2017-06-23 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-26 TICK WIKI/AAPL open: 147.17 close: 145.82\n",
      "2017-06-26 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-27 TICK WIKI/AAPL open: 145.01 close: 143.74\n",
      "2017-06-27 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-28 TICK WIKI/AAPL open: 144.49 close: 145.83\n",
      "2017-06-28 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-29 TICK WIKI/AAPL open: 144.71 close: 143.68\n",
      "2017-06-29 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-30 TICK WIKI/AAPL open: 144.45 close: 144.02\n",
      "2017-06-30 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-03 TICK WIKI/AAPL open: 144.88 close: 143.5\n",
      "2017-07-03 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-05 TICK WIKI/AAPL open: 143.69 close: 144.09\n",
      "2017-07-05 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-06 TICK WIKI/AAPL open: 143.02 close: 142.73\n",
      "2017-07-06 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-07 TICK WIKI/AAPL open: 142.9 close: 144.18\n",
      "2017-07-07 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-10 TICK WIKI/AAPL open: 144.11 close: 145.06\n",
      "2017-07-10 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-11 TICK WIKI/AAPL open: 144.73 close: 145.53\n",
      "2017-07-11 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-12 TICK WIKI/AAPL open: 145.87 close: 145.74\n",
      "2017-07-12 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-13 TICK WIKI/AAPL open: 145.5 close: 147.77\n",
      "2017-07-13 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-14 TICK WIKI/AAPL open: 147.97 close: 149.04\n",
      "2017-07-14 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-17 TICK WIKI/AAPL open: 148.82 close: 149.56\n",
      "2017-07-17 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-18 TICK WIKI/AAPL open: 149.2 close: 150.08\n",
      "2017-07-18 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-19 TICK WIKI/AAPL open: 150.48 close: 151.02\n",
      "2017-07-19 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-20 TICK WIKI/AAPL open: 151.5 close: 150.34\n",
      "2017-07-20 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-21 TICK WIKI/AAPL open: 149.99 close: 150.27\n",
      "2017-07-21 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-24 TICK WIKI/AAPL open: 150.58 close: 152.09\n",
      "2017-07-24 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-25 TICK WIKI/AAPL open: 151.8 close: 152.74\n",
      "2017-07-25 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-26 TICK WIKI/AAPL open: 153.35 close: 153.46\n",
      "2017-07-26 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-27 TICK WIKI/AAPL open: 153.75 close: 150.56\n",
      "2017-07-27 BUY signal\n",
      "2017-07-27 ORDER BUY WIKI/AAPL 1\n",
      "2017-07-27 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-28 TICK WIKI/AAPL open: 149.89 close: 149.5\n",
      "2017-07-28 FILLED BUY 1 WIKI/AAPL at 149.89\n",
      "2017-07-28 POSITION value:-149.890 upnl:-0.390 rpnl:1.130\n",
      "2017-07-31 TICK WIKI/AAPL open: 149.9 close: 148.85\n",
      "2017-07-31 POSITION value:-149.890 upnl:-1.040 rpnl:1.130\n",
      "2017-08-01 TICK WIKI/AAPL open: 149.1 close: 150.05\n",
      "2017-08-01 POSITION value:-149.890 upnl:0.160 rpnl:1.130\n",
      "2017-08-02 TICK WIKI/AAPL open: 159.28 close: 157.14\n",
      "2017-08-02 SELL signal\n",
      "2017-08-02 ORDER SELL WIKI/AAPL 1\n",
      "2017-08-02 POSITION value:-149.890 upnl:7.250 rpnl:1.130\n",
      "2017-08-03 TICK WIKI/AAPL open: 157.05 close: 155.57\n",
      "2017-08-03 FILLED SELL 1 WIKI/AAPL at 157.05\n",
      "2017-08-03 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-04 TICK WIKI/AAPL open: 156.07 close: 156.39\n",
      "2017-08-04 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-08 TICK WIKI/AAPL open: 158.6 close: 160.08\n",
      "2017-08-08 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-09 TICK WIKI/AAPL open: 159.26 close: 161.06\n",
      "2017-08-09 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-10 TICK WIKI/AAPL open: 159.9 close: 155.27\n",
      "2017-08-10 BUY signal\n",
      "2017-08-10 ORDER BUY WIKI/AAPL 1\n",
      "2017-08-10 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-11 TICK WIKI/AAPL open: 156.6 close: 157.48\n",
      "2017-08-11 FILLED BUY 1 WIKI/AAPL at 156.6\n",
      "2017-08-11 POSITION value:-156.600 upnl:0.880 rpnl:7.160\n",
      "2017-08-14 TICK WIKI/AAPL open: 159.32 close: 159.85\n",
      "2017-08-14 POSITION value:-156.600 upnl:3.250 rpnl:7.160\n",
      "2017-08-15 TICK WIKI/AAPL open: 160.66 close: 161.6\n",
      "2017-08-15 POSITION value:-156.600 upnl:5.000 rpnl:7.160\n",
      "2017-08-16 TICK WIKI/AAPL open: 161.94 close: 160.95\n",
      "2017-08-16 POSITION value:-156.600 upnl:4.350 rpnl:7.160\n",
      "2017-08-17 TICK WIKI/AAPL open: 160.52 close: 157.87\n",
      "2017-08-17 POSITION value:-156.600 upnl:1.270 rpnl:7.160\n",
      "2017-08-18 TICK WIKI/AAPL open: 157.86 close: 157.5\n",
      "2017-08-18 POSITION value:-156.600 upnl:0.900 rpnl:7.160\n",
      "2017-08-21 TICK WIKI/AAPL open: 157.5 close: 157.21\n",
      "2017-08-21 POSITION value:-156.600 upnl:0.610 rpnl:7.160\n",
      "2017-08-22 TICK WIKI/AAPL open: 158.23 close: 159.78\n",
      "2017-08-22 POSITION value:-156.600 upnl:3.180 rpnl:7.160\n",
      "2017-08-23 TICK WIKI/AAPL open: 159.07 close: 159.98\n",
      "2017-08-23 POSITION value:-156.600 upnl:3.380 rpnl:7.160\n",
      "2017-08-24 TICK WIKI/AAPL open: 160.43 close: 159.27\n",
      "2017-08-24 POSITION value:-156.600 upnl:2.670 rpnl:7.160\n",
      "2017-08-25 TICK WIKI/AAPL open: 159.65 close: 159.86\n",
      "2017-08-25 POSITION value:-156.600 upnl:3.260 rpnl:7.160\n",
      "2017-08-28 TICK WIKI/AAPL open: 160.14 close: 161.47\n",
      "2017-08-28 POSITION value:-156.600 upnl:4.870 rpnl:7.160\n",
      "2017-08-29 TICK WIKI/AAPL open: 160.1 close: 162.91\n",
      "2017-08-29 POSITION value:-156.600 upnl:6.310 rpnl:7.160\n",
      "2017-08-30 TICK WIKI/AAPL open: 163.8 close: 163.35\n",
      "2017-08-30 POSITION value:-156.600 upnl:6.750 rpnl:7.160\n",
      "2017-08-31 TICK WIKI/AAPL open: 163.64 close: 164.0\n",
      "2017-08-31 POSITION value:-156.600 upnl:7.400 rpnl:7.160\n",
      "2017-09-01 TICK WIKI/AAPL open: 164.8 close: 164.05\n",
      "2017-09-01 POSITION value:-156.600 upnl:7.450 rpnl:7.160\n",
      "2017-09-05 TICK WIKI/AAPL open: 163.75 close: 162.08\n",
      "2017-09-05 POSITION value:-156.600 upnl:5.480 rpnl:7.160\n",
      "2017-09-06 TICK WIKI/AAPL open: 162.71 close: 161.91\n",
      "2017-09-06 POSITION value:-156.600 upnl:5.310 rpnl:7.160\n",
      "2017-09-07 TICK WIKI/AAPL open: 162.09 close: 161.26\n",
      "2017-09-07 POSITION value:-156.600 upnl:4.660 rpnl:7.160\n",
      "2017-09-08 TICK WIKI/AAPL open: 160.86 close: 158.63\n",
      "2017-09-08 POSITION value:-156.600 upnl:2.030 rpnl:7.160\n",
      "2017-09-11 TICK WIKI/AAPL open: 160.5 close: 161.5\n",
      "2017-09-11 SELL signal\n",
      "2017-09-11 ORDER SELL WIKI/AAPL 1\n",
      "2017-09-11 POSITION value:-156.600 upnl:4.900 rpnl:7.160\n",
      "2017-09-12 TICK WIKI/AAPL open: 162.61 close: 160.82\n",
      "2017-09-12 FILLED SELL 1 WIKI/AAPL at 162.61\n",
      "2017-09-12 POSITION value:0.000 upnl:0.000 rpnl:6.010\n",
      "2017-09-13 TICK WIKI/AAPL open: 159.87 close: 159.65\n",
      "2017-09-13 POSITION value:0.000 upnl:0.000 rpnl:6.010\n",
      "2017-09-14 TICK WIKI/AAPL open: 158.99 close: 158.28\n",
      "2017-09-14 POSITION value:0.000 upnl:0.000 rpnl:6.010\n",
      "2017-09-15 TICK WIKI/AAPL open: 158.47 close: 159.88\n",
      "2017-09-15 POSITION value:0.000 upnl:0.000 rpnl:6.010\n",
      "2017-09-18 TICK WIKI/AAPL open: 160.11 close: 158.67\n",
      "2017-09-18 POSITION value:0.000 upnl:0.000 rpnl:6.010\n",
      "2017-09-19 TICK WIKI/AAPL open: 159.51 close: 158.73\n",
      "2017-09-19 POSITION value:0.000 upnl:0.000 rpnl:6.010\n",
      "2017-09-20 TICK WIKI/AAPL open: 157.9 close: 156.07\n",
      "2017-09-20 BUY signal\n",
      "2017-09-20 ORDER BUY WIKI/AAPL 1\n",
      "2017-09-20 POSITION value:0.000 upnl:0.000 rpnl:6.010\n",
      "2017-09-21 TICK WIKI/AAPL open: 155.8 close: 153.39\n",
      "2017-09-21 FILLED BUY 1 WIKI/AAPL at 155.8\n",
      "2017-09-21 POSITION value:-155.800 upnl:-2.410 rpnl:6.010\n",
      "2017-09-22 TICK WIKI/AAPL open: 152.02 close: 151.89\n",
      "2017-09-22 POSITION value:-155.800 upnl:-3.910 rpnl:6.010\n",
      "2017-09-25 TICK WIKI/AAPL open: 149.99 close: 150.55\n",
      "2017-09-25 POSITION value:-155.800 upnl:-5.250 rpnl:6.010\n",
      "2017-09-26 TICK WIKI/AAPL open: 151.78 close: 153.14\n",
      "2017-09-26 SELL signal\n",
      "2017-09-26 ORDER SELL WIKI/AAPL 1\n",
      "2017-09-26 POSITION value:-155.800 upnl:-2.660 rpnl:6.010\n",
      "2017-09-27 TICK WIKI/AAPL open: 153.8 close: 154.23\n",
      "2017-09-27 FILLED SELL 1 WIKI/AAPL at 153.8\n",
      "2017-09-27 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-09-28 TICK WIKI/AAPL open: 153.89 close: 153.28\n",
      "2017-09-28 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-09-29 TICK WIKI/AAPL open: 153.21 close: 154.12\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2017-09-29 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-02 TICK WIKI/AAPL open: 154.26 close: 153.81\n",
      "2017-10-02 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-03 TICK WIKI/AAPL open: 154.01 close: 154.48\n",
      "2017-10-03 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-04 TICK WIKI/AAPL open: 153.63 close: 153.4508\n",
      "2017-10-04 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-05 TICK WIKI/AAPL open: 154.18 close: 155.39\n",
      "2017-10-05 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-06 TICK WIKI/AAPL open: 154.97 close: 155.3\n",
      "2017-10-06 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-09 TICK WIKI/AAPL open: 155.81 close: 155.84\n",
      "2017-10-09 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-10 TICK WIKI/AAPL open: 156.055 close: 155.9\n",
      "2017-10-10 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-11 TICK WIKI/AAPL open: 155.97 close: 156.55\n",
      "2017-10-11 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-12 TICK WIKI/AAPL open: 156.35 close: 156.0\n",
      "2017-10-12 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-13 TICK WIKI/AAPL open: 156.73 close: 156.99\n",
      "2017-10-13 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-16 TICK WIKI/AAPL open: 157.9 close: 159.88\n",
      "2017-10-16 SELL signal\n",
      "2017-10-16 ORDER SELL WIKI/AAPL 1\n",
      "2017-10-16 POSITION value:0.000 upnl:0.000 rpnl:-2.000\n",
      "2017-10-17 TICK WIKI/AAPL open: 159.78 close: 160.47\n",
      "2017-10-17 FILLED SELL 1 WIKI/AAPL at 159.78\n",
      "2017-10-17 POSITION value:159.780 upnl:-0.690 rpnl:-2.000\n",
      "2017-10-18 TICK WIKI/AAPL open: 160.42 close: 159.76\n",
      "2017-10-18 POSITION value:159.780 upnl:0.020 rpnl:-2.000\n",
      "2017-10-19 TICK WIKI/AAPL open: 156.75 close: 155.98\n",
      "2017-10-19 BUY signal\n",
      "2017-10-19 ORDER BUY WIKI/AAPL 1\n",
      "2017-10-19 POSITION value:159.780 upnl:3.800 rpnl:-2.000\n",
      "2017-10-20 TICK WIKI/AAPL open: 156.61 close: 156.16\n",
      "2017-10-20 FILLED BUY 1 WIKI/AAPL at 156.61\n",
      "2017-10-20 POSITION value:0.000 upnl:0.000 rpnl:3.170\n",
      "2017-10-23 TICK WIKI/AAPL open: 156.89 close: 156.17\n",
      "2017-10-23 POSITION value:0.000 upnl:0.000 rpnl:3.170\n",
      "2017-10-24 TICK WIKI/AAPL open: 156.29 close: 157.1\n",
      "2017-10-24 POSITION value:0.000 upnl:0.000 rpnl:3.170\n",
      "2017-10-25 TICK WIKI/AAPL open: 156.91 close: 156.405\n",
      "2017-10-25 POSITION value:0.000 upnl:0.000 rpnl:3.170\n",
      "2017-10-26 TICK WIKI/AAPL open: 157.23 close: 157.41\n",
      "2017-10-26 POSITION value:0.000 upnl:0.000 rpnl:3.170\n",
      "2017-10-27 TICK WIKI/AAPL open: 159.29 close: 163.05\n",
      "2017-10-27 SELL signal\n",
      "2017-10-27 ORDER SELL WIKI/AAPL 1\n",
      "2017-10-27 POSITION value:0.000 upnl:0.000 rpnl:3.170\n",
      "2017-10-30 TICK WIKI/AAPL open: 163.89 close: 166.72\n",
      "2017-10-30 FILLED SELL 1 WIKI/AAPL at 163.89\n",
      "2017-10-30 POSITION value:163.890 upnl:-2.830 rpnl:3.170\n",
      "2017-10-31 TICK WIKI/AAPL open: 167.9 close: 169.04\n",
      "2017-10-31 POSITION value:163.890 upnl:-5.150 rpnl:3.170\n",
      "2017-11-01 TICK WIKI/AAPL open: 169.87 close: 166.89\n",
      "2017-11-01 POSITION value:163.890 upnl:-3.000 rpnl:3.170\n",
      "2017-11-02 TICK WIKI/AAPL open: 167.64 close: 168.11\n",
      "2017-11-02 POSITION value:163.890 upnl:-4.220 rpnl:3.170\n",
      "2017-11-03 TICK WIKI/AAPL open: 174.0 close: 172.5\n",
      "2017-11-03 POSITION value:163.890 upnl:-8.610 rpnl:3.170\n",
      "2017-11-06 TICK WIKI/AAPL open: 172.365 close: 174.25\n",
      "2017-11-06 POSITION value:163.890 upnl:-10.360 rpnl:3.170\n",
      "2017-11-07 TICK WIKI/AAPL open: 173.91 close: 174.81\n",
      "2017-11-07 POSITION value:163.890 upnl:-10.920 rpnl:3.170\n",
      "2017-11-09 TICK WIKI/AAPL open: 175.11 close: 175.88\n",
      "2017-11-09 POSITION value:163.890 upnl:-11.990 rpnl:3.170\n",
      "2017-11-10 TICK WIKI/AAPL open: 175.11 close: 174.67\n",
      "2017-11-10 POSITION value:163.890 upnl:-10.780 rpnl:3.170\n",
      "2017-11-13 TICK WIKI/AAPL open: 173.5 close: 173.97\n",
      "2017-11-13 POSITION value:163.890 upnl:-10.080 rpnl:3.170\n",
      "2017-11-14 TICK WIKI/AAPL open: 173.04 close: 171.34\n",
      "2017-11-14 POSITION value:163.890 upnl:-7.450 rpnl:3.170\n",
      "2017-11-15 TICK WIKI/AAPL open: 169.97 close: 169.08\n",
      "2017-11-15 POSITION value:163.890 upnl:-5.190 rpnl:3.170\n",
      "2017-11-16 TICK WIKI/AAPL open: 171.18 close: 171.1\n",
      "2017-11-16 POSITION value:163.890 upnl:-7.210 rpnl:3.170\n",
      "2017-11-17 TICK WIKI/AAPL open: 171.04 close: 170.15\n",
      "2017-11-17 POSITION value:163.890 upnl:-6.260 rpnl:3.170\n",
      "2017-11-20 TICK WIKI/AAPL open: 170.29 close: 169.98\n",
      "2017-11-20 POSITION value:163.890 upnl:-6.090 rpnl:3.170\n",
      "2017-11-21 TICK WIKI/AAPL open: 170.78 close: 173.14\n",
      "2017-11-21 POSITION value:163.890 upnl:-9.250 rpnl:3.170\n",
      "2017-11-22 TICK WIKI/AAPL open: 173.36 close: 174.96\n",
      "2017-11-22 POSITION value:163.890 upnl:-11.070 rpnl:3.170\n",
      "2017-11-24 TICK WIKI/AAPL open: 175.1 close: 174.97\n",
      "2017-11-24 POSITION value:163.890 upnl:-11.080 rpnl:3.170\n",
      "2017-11-27 TICK WIKI/AAPL open: 175.05 close: 174.09\n",
      "2017-11-27 POSITION value:163.890 upnl:-10.200 rpnl:3.170\n",
      "2017-11-28 TICK WIKI/AAPL open: 174.3 close: 173.07\n",
      "2017-11-28 POSITION value:163.890 upnl:-9.180 rpnl:3.170\n",
      "2017-11-29 TICK WIKI/AAPL open: 172.63 close: 169.48\n",
      "2017-11-29 BUY signal\n",
      "2017-11-29 ORDER BUY WIKI/AAPL 1\n",
      "2017-11-29 POSITION value:163.890 upnl:-5.590 rpnl:3.170\n",
      "2017-11-30 TICK WIKI/AAPL open: 170.43 close: 171.85\n",
      "2017-11-30 FILLED BUY 1 WIKI/AAPL at 170.43\n",
      "2017-11-30 POSITION value:0.000 upnl:0.000 rpnl:-6.540\n",
      "2017-12-01 TICK WIKI/AAPL open: 169.95 close: 171.05\n",
      "2017-12-01 POSITION value:0.000 upnl:0.000 rpnl:-6.540\n",
      "2017-12-04 TICK WIKI/AAPL open: 172.48 close: 169.8\n",
      "2017-12-04 POSITION value:0.000 upnl:0.000 rpnl:-6.540\n",
      "2017-12-05 TICK WIKI/AAPL open: 169.06 close: 169.64\n",
      "2017-12-05 POSITION value:0.000 upnl:0.000 rpnl:-6.540\n",
      "2017-12-06 TICK WIKI/AAPL open: 167.5 close: 169.01\n",
      "2017-12-06 POSITION value:0.000 upnl:0.000 rpnl:-6.540\n",
      "2017-12-07 TICK WIKI/AAPL open: 169.03 close: 169.452\n",
      "2017-12-07 POSITION value:0.000 upnl:0.000 rpnl:-6.540\n",
      "2017-12-08 TICK WIKI/AAPL open: 170.49 close: 169.37\n",
      "2017-12-08 POSITION value:0.000 upnl:0.000 rpnl:-6.540\n",
      "2017-12-11 TICK WIKI/AAPL open: 169.2 close: 172.67\n",
      "2017-12-11 SELL signal\n",
      "2017-12-11 ORDER SELL WIKI/AAPL 1\n",
      "2017-12-11 POSITION value:0.000 upnl:0.000 rpnl:-6.540\n",
      "2017-12-12 TICK WIKI/AAPL open: 172.15 close: 171.7\n",
      "2017-12-12 FILLED SELL 1 WIKI/AAPL at 172.15\n",
      "2017-12-12 POSITION value:172.150 upnl:0.450 rpnl:-6.540\n",
      "2017-12-13 TICK WIKI/AAPL open: 172.5 close: 172.27\n",
      "2017-12-13 POSITION value:172.150 upnl:-0.120 rpnl:-6.540\n",
      "2017-12-14 TICK WIKI/AAPL open: 172.4 close: 172.22\n",
      "2017-12-14 POSITION value:172.150 upnl:-0.070 rpnl:-6.540\n",
      "2017-12-15 TICK WIKI/AAPL open: 173.63 close: 173.87\n",
      "2017-12-15 POSITION value:172.150 upnl:-1.720 rpnl:-6.540\n",
      "2017-12-18 TICK WIKI/AAPL open: 174.88 close: 176.42\n",
      "2017-12-18 POSITION value:172.150 upnl:-4.270 rpnl:-6.540\n",
      "2017-12-19 TICK WIKI/AAPL open: 175.03 close: 174.54\n",
      "2017-12-19 POSITION value:172.150 upnl:-2.390 rpnl:-6.540\n",
      "2017-12-20 TICK WIKI/AAPL open: 174.87 close: 174.35\n",
      "2017-12-20 POSITION value:172.150 upnl:-2.200 rpnl:-6.540\n",
      "2017-12-21 TICK WIKI/AAPL open: 174.17 close: 175.01\n",
      "2017-12-21 POSITION value:172.150 upnl:-2.860 rpnl:-6.540\n",
      "2017-12-22 TICK WIKI/AAPL open: 174.68 close: 175.01\n",
      "2017-12-22 POSITION value:172.150 upnl:-2.860 rpnl:-6.540\n",
      "2017-12-26 TICK WIKI/AAPL open: 170.8 close: 170.57\n",
      "2017-12-26 BUY signal\n",
      "2017-12-26 ORDER BUY WIKI/AAPL 1\n",
      "2017-12-26 POSITION value:172.150 upnl:1.580 rpnl:-6.540\n",
      "2017-12-27 TICK WIKI/AAPL open: 170.1 close: 170.6\n",
      "2017-12-27 FILLED BUY 1 WIKI/AAPL at 170.1\n",
      "2017-12-27 POSITION value:0.000 upnl:0.000 rpnl:2.050\n",
      "2017-12-28 TICK WIKI/AAPL open: 171.0 close: 171.08\n",
      "2017-12-28 POSITION value:0.000 upnl:0.000 rpnl:2.050\n",
      "2017-12-29 TICK WIKI/AAPL open: 170.52 close: 169.23\n",
      "2017-12-29 POSITION value:0.000 upnl:0.000 rpnl:2.050\n",
      "Backtest completed.\n",
      "Backtest started...\n",
      "Processing total_ticks: 753\n",
      "2015-01-02 TICK WIKI/AAPL open: 111.39 close: 109.33\n",
      "2015-01-05 TICK WIKI/AAPL open: 108.29 close: 106.25\n",
      "2015-01-06 TICK WIKI/AAPL open: 106.54 close: 106.26\n",
      "2015-01-07 TICK WIKI/AAPL open: 107.2 close: 107.75\n",
      "2015-01-08 TICK WIKI/AAPL open: 109.23 close: 111.89\n",
      "2015-01-09 TICK WIKI/AAPL open: 112.67 close: 112.01\n",
      "2015-01-12 TICK WIKI/AAPL open: 112.6 close: 109.25\n",
      "2015-01-13 TICK WIKI/AAPL open: 111.43 close: 110.22\n",
      "2015-01-14 TICK WIKI/AAPL open: 109.04 close: 109.8\n",
      "2015-01-15 TICK WIKI/AAPL open: 110.0 close: 106.82\n",
      "2015-01-16 TICK WIKI/AAPL open: 107.03 close: 105.99\n",
      "2015-01-20 TICK WIKI/AAPL open: 107.84 close: 108.72\n",
      "2015-01-21 TICK WIKI/AAPL open: 108.95 close: 109.55\n",
      "2015-01-22 TICK WIKI/AAPL open: 110.26 close: 112.4\n",
      "2015-01-23 TICK WIKI/AAPL open: 112.3 close: 112.98\n",
      "2015-01-26 TICK WIKI/AAPL open: 113.74 close: 113.1\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2015-01-27 TICK WIKI/AAPL open: 112.42 close: 109.14\n",
      "2015-01-28 TICK WIKI/AAPL open: 117.625 close: 115.31\n",
      "2015-01-29 TICK WIKI/AAPL open: 116.32 close: 118.9\n",
      "2015-01-30 TICK WIKI/AAPL open: 118.4 close: 117.16\n",
      "2015-02-02 TICK WIKI/AAPL open: 118.05 close: 118.63\n",
      "2015-02-03 TICK WIKI/AAPL open: 118.5 close: 118.65\n",
      "2015-02-04 TICK WIKI/AAPL open: 118.5 close: 119.56\n",
      "2015-02-05 TICK WIKI/AAPL open: 120.02 close: 119.94\n",
      "2015-02-06 TICK WIKI/AAPL open: 120.02 close: 118.93\n",
      "2015-02-09 TICK WIKI/AAPL open: 118.55 close: 119.72\n",
      "2015-02-10 TICK WIKI/AAPL open: 120.17 close: 122.02\n",
      "2015-02-11 TICK WIKI/AAPL open: 122.77 close: 124.88\n",
      "2015-02-12 TICK WIKI/AAPL open: 126.06 close: 126.46\n",
      "2015-02-13 TICK WIKI/AAPL open: 127.28 close: 127.08\n",
      "2015-02-17 TICK WIKI/AAPL open: 127.49 close: 127.83\n",
      "2015-02-18 TICK WIKI/AAPL open: 127.625 close: 128.715\n",
      "2015-02-19 TICK WIKI/AAPL open: 128.48 close: 128.45\n",
      "2015-02-20 TICK WIKI/AAPL open: 128.62 close: 129.495\n",
      "2015-02-23 TICK WIKI/AAPL open: 130.02 close: 133.0\n",
      "2015-02-24 TICK WIKI/AAPL open: 132.94 close: 132.17\n",
      "2015-02-25 TICK WIKI/AAPL open: 131.56 close: 128.79\n",
      "2015-02-26 TICK WIKI/AAPL open: 128.785 close: 130.415\n",
      "2015-02-27 TICK WIKI/AAPL open: 130.0 close: 128.46\n",
      "2015-03-02 TICK WIKI/AAPL open: 129.25 close: 129.09\n",
      "2015-03-03 TICK WIKI/AAPL open: 128.96 close: 129.36\n",
      "2015-03-04 TICK WIKI/AAPL open: 129.1 close: 128.54\n",
      "2015-03-05 TICK WIKI/AAPL open: 128.58 close: 126.41\n",
      "2015-03-06 TICK WIKI/AAPL open: 128.4 close: 126.6\n",
      "2015-03-09 TICK WIKI/AAPL open: 127.96 close: 127.14\n",
      "2015-03-10 TICK WIKI/AAPL open: 126.41 close: 124.51\n",
      "2015-03-11 TICK WIKI/AAPL open: 124.75 close: 122.24\n",
      "2015-03-12 TICK WIKI/AAPL open: 122.31 close: 124.45\n",
      "2015-03-13 TICK WIKI/AAPL open: 124.4 close: 123.59\n",
      "2015-03-16 TICK WIKI/AAPL open: 123.88 close: 124.95\n",
      "2015-03-17 TICK WIKI/AAPL open: 125.9 close: 127.04\n",
      "2015-03-18 TICK WIKI/AAPL open: 127.0 close: 128.47\n",
      "2015-03-19 TICK WIKI/AAPL open: 128.75 close: 127.495\n",
      "2015-03-20 TICK WIKI/AAPL open: 128.25 close: 125.9\n",
      "2015-03-23 TICK WIKI/AAPL open: 127.12 close: 127.21\n",
      "2015-03-24 TICK WIKI/AAPL open: 127.23 close: 126.69\n",
      "2015-03-25 TICK WIKI/AAPL open: 126.54 close: 123.38\n",
      "2015-03-26 TICK WIKI/AAPL open: 122.76 close: 124.24\n",
      "2015-03-27 TICK WIKI/AAPL open: 124.57 close: 123.25\n",
      "2015-03-30 TICK WIKI/AAPL open: 124.05 close: 126.37\n",
      "2015-03-31 TICK WIKI/AAPL open: 126.09 close: 124.43\n",
      "2015-04-01 TICK WIKI/AAPL open: 124.82 close: 124.25\n",
      "2015-04-02 TICK WIKI/AAPL open: 125.03 close: 125.32\n",
      "2015-04-06 TICK WIKI/AAPL open: 124.47 close: 127.35\n",
      "2015-04-07 TICK WIKI/AAPL open: 127.64 close: 126.01\n",
      "2015-04-08 TICK WIKI/AAPL open: 125.85 close: 125.6\n",
      "2015-04-09 TICK WIKI/AAPL open: 125.85 close: 126.56\n",
      "2015-04-10 TICK WIKI/AAPL open: 125.95 close: 127.1\n",
      "2015-04-13 TICK WIKI/AAPL open: 128.37 close: 126.85\n",
      "2015-04-14 TICK WIKI/AAPL open: 127.0 close: 126.3\n",
      "2015-04-15 TICK WIKI/AAPL open: 126.41 close: 126.78\n",
      "2015-04-16 TICK WIKI/AAPL open: 126.28 close: 126.17\n",
      "2015-04-17 TICK WIKI/AAPL open: 125.55 close: 124.75\n",
      "2015-04-20 TICK WIKI/AAPL open: 125.57 close: 127.6\n",
      "2015-04-21 TICK WIKI/AAPL open: 128.1 close: 126.91\n",
      "2015-04-22 TICK WIKI/AAPL open: 126.99 close: 128.62\n",
      "2015-04-23 TICK WIKI/AAPL open: 128.3 close: 129.67\n",
      "2015-04-24 TICK WIKI/AAPL open: 130.49 close: 130.28\n",
      "2015-04-27 TICK WIKI/AAPL open: 132.31 close: 132.65\n",
      "2015-04-28 TICK WIKI/AAPL open: 134.455 close: 130.56\n",
      "2015-04-29 TICK WIKI/AAPL open: 130.16 close: 128.64\n",
      "2015-04-30 TICK WIKI/AAPL open: 127.5 close: 125.15\n",
      "2015-05-01 TICK WIKI/AAPL open: 126.1 close: 128.95\n",
      "2015-05-01 SELL signal\n",
      "2015-05-01 ORDER SELL WIKI/AAPL 1\n",
      "2015-05-04 TICK WIKI/AAPL open: 129.5 close: 128.7\n",
      "2015-05-04 FILLED SELL 1 WIKI/AAPL at 129.5\n",
      "2015-05-04 POSITION value:129.500 upnl:0.800 rpnl:0.000\n",
      "2015-05-05 TICK WIKI/AAPL open: 128.15 close: 125.8\n",
      "2015-05-05 POSITION value:129.500 upnl:3.700 rpnl:0.000\n",
      "2015-05-06 TICK WIKI/AAPL open: 126.56 close: 125.01\n",
      "2015-05-06 POSITION value:129.500 upnl:4.490 rpnl:0.000\n",
      "2015-05-07 TICK WIKI/AAPL open: 124.77 close: 125.26\n",
      "2015-05-07 POSITION value:129.500 upnl:4.240 rpnl:0.000\n",
      "2015-05-08 TICK WIKI/AAPL open: 126.68 close: 127.62\n",
      "2015-05-08 POSITION value:129.500 upnl:1.880 rpnl:0.000\n",
      "2015-05-11 TICK WIKI/AAPL open: 127.39 close: 126.32\n",
      "2015-05-11 POSITION value:129.500 upnl:3.180 rpnl:0.000\n",
      "2015-05-12 TICK WIKI/AAPL open: 125.6 close: 125.865\n",
      "2015-05-12 POSITION value:129.500 upnl:3.635 rpnl:0.000\n",
      "2015-05-13 TICK WIKI/AAPL open: 126.15 close: 126.01\n",
      "2015-05-13 POSITION value:129.500 upnl:3.490 rpnl:0.000\n",
      "2015-05-14 TICK WIKI/AAPL open: 127.41 close: 128.95\n",
      "2015-05-14 POSITION value:129.500 upnl:0.550 rpnl:0.000\n",
      "2015-05-15 TICK WIKI/AAPL open: 129.07 close: 128.77\n",
      "2015-05-15 POSITION value:129.500 upnl:0.730 rpnl:0.000\n",
      "2015-05-18 TICK WIKI/AAPL open: 128.38 close: 130.19\n",
      "2015-05-18 POSITION value:129.500 upnl:-0.690 rpnl:0.000\n",
      "2015-05-19 TICK WIKI/AAPL open: 130.69 close: 130.07\n",
      "2015-05-19 POSITION value:129.500 upnl:-0.570 rpnl:0.000\n",
      "2015-05-20 TICK WIKI/AAPL open: 130.0 close: 130.06\n",
      "2015-05-20 POSITION value:129.500 upnl:-0.560 rpnl:0.000\n",
      "2015-05-21 TICK WIKI/AAPL open: 130.07 close: 131.39\n",
      "2015-05-21 POSITION value:129.500 upnl:-1.890 rpnl:0.000\n",
      "2015-05-22 TICK WIKI/AAPL open: 131.6 close: 132.54\n",
      "2015-05-22 POSITION value:129.500 upnl:-3.040 rpnl:0.000\n",
      "2015-05-26 TICK WIKI/AAPL open: 132.6 close: 129.62\n",
      "2015-05-26 POSITION value:129.500 upnl:-0.120 rpnl:0.000\n",
      "2015-05-27 TICK WIKI/AAPL open: 130.34 close: 132.045\n",
      "2015-05-27 POSITION value:129.500 upnl:-2.545 rpnl:0.000\n",
      "2015-05-28 TICK WIKI/AAPL open: 131.86 close: 131.78\n",
      "2015-05-28 POSITION value:129.500 upnl:-2.280 rpnl:0.000\n",
      "2015-05-29 TICK WIKI/AAPL open: 131.23 close: 130.28\n",
      "2015-05-29 POSITION value:129.500 upnl:-0.780 rpnl:0.000\n",
      "2015-06-01 TICK WIKI/AAPL open: 131.2 close: 130.535\n",
      "2015-06-01 POSITION value:129.500 upnl:-1.035 rpnl:0.000\n",
      "2015-06-02 TICK WIKI/AAPL open: 129.86 close: 129.96\n",
      "2015-06-02 POSITION value:129.500 upnl:-0.460 rpnl:0.000\n",
      "2015-06-03 TICK WIKI/AAPL open: 130.66 close: 130.12\n",
      "2015-06-03 POSITION value:129.500 upnl:-0.620 rpnl:0.000\n",
      "2015-06-04 TICK WIKI/AAPL open: 129.58 close: 129.36\n",
      "2015-06-04 POSITION value:129.500 upnl:0.140 rpnl:0.000\n",
      "2015-06-05 TICK WIKI/AAPL open: 129.5 close: 128.65\n",
      "2015-06-05 POSITION value:129.500 upnl:0.850 rpnl:0.000\n",
      "2015-06-08 TICK WIKI/AAPL open: 128.9 close: 127.8\n",
      "2015-06-08 POSITION value:129.500 upnl:1.700 rpnl:0.000\n",
      "2015-06-09 TICK WIKI/AAPL open: 126.7 close: 127.42\n",
      "2015-06-09 POSITION value:129.500 upnl:2.080 rpnl:0.000\n",
      "2015-06-10 TICK WIKI/AAPL open: 127.92 close: 128.88\n",
      "2015-06-10 POSITION value:129.500 upnl:0.620 rpnl:0.000\n",
      "2015-06-11 TICK WIKI/AAPL open: 129.18 close: 128.59\n",
      "2015-06-11 POSITION value:129.500 upnl:0.910 rpnl:0.000\n",
      "2015-06-12 TICK WIKI/AAPL open: 128.185 close: 127.17\n",
      "2015-06-12 POSITION value:129.500 upnl:2.330 rpnl:0.000\n",
      "2015-06-15 TICK WIKI/AAPL open: 126.1 close: 126.92\n",
      "2015-06-15 POSITION value:129.500 upnl:2.580 rpnl:0.000\n",
      "2015-06-16 TICK WIKI/AAPL open: 127.03 close: 127.6\n",
      "2015-06-16 POSITION value:129.500 upnl:1.900 rpnl:0.000\n",
      "2015-06-17 TICK WIKI/AAPL open: 127.72 close: 127.3\n",
      "2015-06-17 POSITION value:129.500 upnl:2.200 rpnl:0.000\n",
      "2015-06-18 TICK WIKI/AAPL open: 127.23 close: 127.88\n",
      "2015-06-18 POSITION value:129.500 upnl:1.620 rpnl:0.000\n",
      "2015-06-19 TICK WIKI/AAPL open: 127.71 close: 126.6\n",
      "2015-06-19 POSITION value:129.500 upnl:2.900 rpnl:0.000\n",
      "2015-06-22 TICK WIKI/AAPL open: 127.49 close: 127.61\n",
      "2015-06-22 POSITION value:129.500 upnl:1.890 rpnl:0.000\n",
      "2015-06-23 TICK WIKI/AAPL open: 127.48 close: 127.03\n",
      "2015-06-23 POSITION value:129.500 upnl:2.470 rpnl:0.000\n",
      "2015-06-24 TICK WIKI/AAPL open: 127.21 close: 128.11\n",
      "2015-06-24 POSITION value:129.500 upnl:1.390 rpnl:0.000\n",
      "2015-06-25 TICK WIKI/AAPL open: 128.86 close: 127.5\n",
      "2015-06-25 POSITION value:129.500 upnl:2.000 rpnl:0.000\n",
      "2015-06-26 TICK WIKI/AAPL open: 127.67 close: 126.75\n",
      "2015-06-26 POSITION value:129.500 upnl:2.750 rpnl:0.000\n",
      "2015-06-29 TICK WIKI/AAPL open: 125.46 close: 124.53\n",
      "2015-06-29 POSITION value:129.500 upnl:4.970 rpnl:0.000\n",
      "2015-06-30 TICK WIKI/AAPL open: 125.57 close: 125.425\n",
      "2015-06-30 POSITION value:129.500 upnl:4.075 rpnl:0.000\n",
      "2015-07-01 TICK WIKI/AAPL open: 126.9 close: 126.6\n",
      "2015-07-01 POSITION value:129.500 upnl:2.900 rpnl:0.000\n",
      "2015-07-02 TICK WIKI/AAPL open: 126.43 close: 126.44\n",
      "2015-07-02 POSITION value:129.500 upnl:3.060 rpnl:0.000\n",
      "2015-07-06 TICK WIKI/AAPL open: 124.94 close: 126.0\n",
      "2015-07-06 POSITION value:129.500 upnl:3.500 rpnl:0.000\n",
      "2015-07-07 TICK WIKI/AAPL open: 125.89 close: 125.69\n",
      "2015-07-07 POSITION value:129.500 upnl:3.810 rpnl:0.000\n",
      "2015-07-08 TICK WIKI/AAPL open: 124.48 close: 122.57\n",
      "2015-07-08 POSITION value:129.500 upnl:6.930 rpnl:0.000\n",
      "2015-07-09 TICK WIKI/AAPL open: 123.85 close: 120.07\n",
      "2015-07-09 POSITION value:129.500 upnl:9.430 rpnl:0.000\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2015-07-10 TICK WIKI/AAPL open: 121.94 close: 123.28\n",
      "2015-07-10 POSITION value:129.500 upnl:6.220 rpnl:0.000\n",
      "2015-07-13 TICK WIKI/AAPL open: 125.03 close: 125.66\n",
      "2015-07-13 POSITION value:129.500 upnl:3.840 rpnl:0.000\n",
      "2015-07-14 TICK WIKI/AAPL open: 126.04 close: 125.61\n",
      "2015-07-14 POSITION value:129.500 upnl:3.890 rpnl:0.000\n",
      "2015-07-15 TICK WIKI/AAPL open: 125.72 close: 126.82\n",
      "2015-07-15 POSITION value:129.500 upnl:2.680 rpnl:0.000\n",
      "2015-07-16 TICK WIKI/AAPL open: 127.74 close: 128.51\n",
      "2015-07-16 POSITION value:129.500 upnl:0.990 rpnl:0.000\n",
      "2015-07-17 TICK WIKI/AAPL open: 129.08 close: 129.62\n",
      "2015-07-17 POSITION value:129.500 upnl:-0.120 rpnl:0.000\n",
      "2015-07-20 TICK WIKI/AAPL open: 130.97 close: 132.07\n",
      "2015-07-20 POSITION value:129.500 upnl:-2.570 rpnl:0.000\n",
      "2015-07-21 TICK WIKI/AAPL open: 132.85 close: 130.75\n",
      "2015-07-21 POSITION value:129.500 upnl:-1.250 rpnl:0.000\n",
      "2015-07-22 TICK WIKI/AAPL open: 121.99 close: 125.22\n",
      "2015-07-22 POSITION value:129.500 upnl:4.280 rpnl:0.000\n",
      "2015-07-23 TICK WIKI/AAPL open: 126.2 close: 125.16\n",
      "2015-07-23 POSITION value:129.500 upnl:4.340 rpnl:0.000\n",
      "2015-07-24 TICK WIKI/AAPL open: 125.32 close: 124.5\n",
      "2015-07-24 POSITION value:129.500 upnl:5.000 rpnl:0.000\n",
      "2015-07-27 TICK WIKI/AAPL open: 123.09 close: 122.77\n",
      "2015-07-27 POSITION value:129.500 upnl:6.730 rpnl:0.000\n",
      "2015-07-28 TICK WIKI/AAPL open: 123.38 close: 123.38\n",
      "2015-07-28 POSITION value:129.500 upnl:6.120 rpnl:0.000\n",
      "2015-07-29 TICK WIKI/AAPL open: 123.15 close: 122.99\n",
      "2015-07-29 POSITION value:129.500 upnl:6.510 rpnl:0.000\n",
      "2015-07-30 TICK WIKI/AAPL open: 122.32 close: 122.37\n",
      "2015-07-30 POSITION value:129.500 upnl:7.130 rpnl:0.000\n",
      "2015-07-31 TICK WIKI/AAPL open: 122.6 close: 121.3\n",
      "2015-07-31 POSITION value:129.500 upnl:8.200 rpnl:0.000\n",
      "2015-08-03 TICK WIKI/AAPL open: 121.5 close: 118.44\n",
      "2015-08-03 POSITION value:129.500 upnl:11.060 rpnl:0.000\n",
      "2015-08-04 TICK WIKI/AAPL open: 117.42 close: 114.64\n",
      "2015-08-04 POSITION value:129.500 upnl:14.860 rpnl:0.000\n",
      "2015-08-05 TICK WIKI/AAPL open: 112.95 close: 115.4\n",
      "2015-08-05 POSITION value:129.500 upnl:14.100 rpnl:0.000\n",
      "2015-08-06 TICK WIKI/AAPL open: 115.97 close: 115.13\n",
      "2015-08-06 POSITION value:129.500 upnl:14.370 rpnl:0.000\n",
      "2015-08-07 TICK WIKI/AAPL open: 114.58 close: 115.52\n",
      "2015-08-07 POSITION value:129.500 upnl:13.980 rpnl:0.000\n",
      "2015-08-10 TICK WIKI/AAPL open: 116.53 close: 119.72\n",
      "2015-08-10 POSITION value:129.500 upnl:9.780 rpnl:0.000\n",
      "2015-08-11 TICK WIKI/AAPL open: 117.81 close: 113.49\n",
      "2015-08-11 POSITION value:129.500 upnl:16.010 rpnl:0.000\n",
      "2015-08-12 TICK WIKI/AAPL open: 112.53 close: 115.24\n",
      "2015-08-12 POSITION value:129.500 upnl:14.260 rpnl:0.000\n",
      "2015-08-13 TICK WIKI/AAPL open: 116.04 close: 115.15\n",
      "2015-08-13 POSITION value:129.500 upnl:14.350 rpnl:0.000\n",
      "2015-08-14 TICK WIKI/AAPL open: 114.32 close: 115.96\n",
      "2015-08-14 POSITION value:129.500 upnl:13.540 rpnl:0.000\n",
      "2015-08-17 TICK WIKI/AAPL open: 116.04 close: 117.16\n",
      "2015-08-17 POSITION value:129.500 upnl:12.340 rpnl:0.000\n",
      "2015-08-18 TICK WIKI/AAPL open: 116.43 close: 116.5\n",
      "2015-08-18 POSITION value:129.500 upnl:13.000 rpnl:0.000\n",
      "2015-08-19 TICK WIKI/AAPL open: 116.1 close: 115.01\n",
      "2015-08-19 POSITION value:129.500 upnl:14.490 rpnl:0.000\n",
      "2015-08-20 TICK WIKI/AAPL open: 114.08 close: 112.65\n",
      "2015-08-20 POSITION value:129.500 upnl:16.850 rpnl:0.000\n",
      "2015-08-21 TICK WIKI/AAPL open: 110.43 close: 105.76\n",
      "2015-08-21 POSITION value:129.500 upnl:23.740 rpnl:0.000\n",
      "2015-08-24 TICK WIKI/AAPL open: 94.87 close: 103.12\n",
      "2015-08-24 POSITION value:129.500 upnl:26.380 rpnl:0.000\n",
      "2015-08-25 TICK WIKI/AAPL open: 111.11 close: 103.74\n",
      "2015-08-25 POSITION value:129.500 upnl:25.760 rpnl:0.000\n",
      "2015-08-26 TICK WIKI/AAPL open: 107.085 close: 109.69\n",
      "2015-08-26 POSITION value:129.500 upnl:19.810 rpnl:0.000\n",
      "2015-08-27 TICK WIKI/AAPL open: 112.25 close: 112.92\n",
      "2015-08-27 POSITION value:129.500 upnl:16.580 rpnl:0.000\n",
      "2015-08-28 TICK WIKI/AAPL open: 112.17 close: 113.29\n",
      "2015-08-28 POSITION value:129.500 upnl:16.210 rpnl:0.000\n",
      "2015-08-31 TICK WIKI/AAPL open: 112.13 close: 112.76\n",
      "2015-08-31 POSITION value:129.500 upnl:16.740 rpnl:0.000\n",
      "2015-09-01 TICK WIKI/AAPL open: 110.18 close: 107.72\n",
      "2015-09-01 POSITION value:129.500 upnl:21.780 rpnl:0.000\n",
      "2015-09-02 TICK WIKI/AAPL open: 110.0 close: 112.34\n",
      "2015-09-02 POSITION value:129.500 upnl:17.160 rpnl:0.000\n",
      "2015-09-03 TICK WIKI/AAPL open: 112.49 close: 110.37\n",
      "2015-09-03 POSITION value:129.500 upnl:19.130 rpnl:0.000\n",
      "2015-09-04 TICK WIKI/AAPL open: 108.97 close: 109.27\n",
      "2015-09-04 POSITION value:129.500 upnl:20.230 rpnl:0.000\n",
      "2015-09-08 TICK WIKI/AAPL open: 111.65 close: 112.31\n",
      "2015-09-08 POSITION value:129.500 upnl:17.190 rpnl:0.000\n",
      "2015-09-09 TICK WIKI/AAPL open: 113.76 close: 110.15\n",
      "2015-09-09 POSITION value:129.500 upnl:19.350 rpnl:0.000\n",
      "2015-09-10 TICK WIKI/AAPL open: 110.27 close: 112.57\n",
      "2015-09-10 POSITION value:129.500 upnl:16.930 rpnl:0.000\n",
      "2015-09-11 TICK WIKI/AAPL open: 111.79 close: 114.21\n",
      "2015-09-11 POSITION value:129.500 upnl:15.290 rpnl:0.000\n",
      "2015-09-14 TICK WIKI/AAPL open: 116.58 close: 115.31\n",
      "2015-09-14 POSITION value:129.500 upnl:14.190 rpnl:0.000\n",
      "2015-09-15 TICK WIKI/AAPL open: 115.93 close: 116.28\n",
      "2015-09-15 POSITION value:129.500 upnl:13.220 rpnl:0.000\n",
      "2015-09-16 TICK WIKI/AAPL open: 116.25 close: 116.41\n",
      "2015-09-16 POSITION value:129.500 upnl:13.090 rpnl:0.000\n",
      "2015-09-17 TICK WIKI/AAPL open: 115.66 close: 113.92\n",
      "2015-09-17 POSITION value:129.500 upnl:15.580 rpnl:0.000\n",
      "2015-09-18 TICK WIKI/AAPL open: 112.21 close: 113.45\n",
      "2015-09-18 POSITION value:129.500 upnl:16.050 rpnl:0.000\n",
      "2015-09-21 TICK WIKI/AAPL open: 113.67 close: 115.21\n",
      "2015-09-21 POSITION value:129.500 upnl:14.290 rpnl:0.000\n",
      "2015-09-22 TICK WIKI/AAPL open: 113.38 close: 113.4\n",
      "2015-09-22 POSITION value:129.500 upnl:16.100 rpnl:0.000\n",
      "2015-09-23 TICK WIKI/AAPL open: 113.63 close: 114.32\n",
      "2015-09-23 POSITION value:129.500 upnl:15.180 rpnl:0.000\n",
      "2015-09-24 TICK WIKI/AAPL open: 113.25 close: 115.0\n",
      "2015-09-24 POSITION value:129.500 upnl:14.500 rpnl:0.000\n",
      "2015-09-25 TICK WIKI/AAPL open: 116.44 close: 114.71\n",
      "2015-09-25 POSITION value:129.500 upnl:14.790 rpnl:0.000\n",
      "2015-09-28 TICK WIKI/AAPL open: 113.85 close: 112.44\n",
      "2015-09-28 POSITION value:129.500 upnl:17.060 rpnl:0.000\n",
      "2015-09-29 TICK WIKI/AAPL open: 112.83 close: 109.06\n",
      "2015-09-29 POSITION value:129.500 upnl:20.440 rpnl:0.000\n",
      "2015-09-30 TICK WIKI/AAPL open: 110.17 close: 109.95\n",
      "2015-09-30 POSITION value:129.500 upnl:19.550 rpnl:0.000\n",
      "2015-10-01 TICK WIKI/AAPL open: 109.07 close: 109.58\n",
      "2015-10-01 POSITION value:129.500 upnl:19.920 rpnl:0.000\n",
      "2015-10-02 TICK WIKI/AAPL open: 108.01 close: 110.38\n",
      "2015-10-02 POSITION value:129.500 upnl:19.120 rpnl:0.000\n",
      "2015-10-05 TICK WIKI/AAPL open: 109.88 close: 110.78\n",
      "2015-10-05 POSITION value:129.500 upnl:18.720 rpnl:0.000\n",
      "2015-10-06 TICK WIKI/AAPL open: 110.63 close: 111.31\n",
      "2015-10-06 POSITION value:129.500 upnl:18.190 rpnl:0.000\n",
      "2015-10-07 TICK WIKI/AAPL open: 111.74 close: 110.78\n",
      "2015-10-07 POSITION value:129.500 upnl:18.720 rpnl:0.000\n",
      "2015-10-08 TICK WIKI/AAPL open: 110.19 close: 109.5\n",
      "2015-10-08 POSITION value:129.500 upnl:20.000 rpnl:0.000\n",
      "2015-10-09 TICK WIKI/AAPL open: 110.0 close: 112.12\n",
      "2015-10-09 POSITION value:129.500 upnl:17.380 rpnl:0.000\n",
      "2015-10-12 TICK WIKI/AAPL open: 112.73 close: 111.6\n",
      "2015-10-12 POSITION value:129.500 upnl:17.900 rpnl:0.000\n",
      "2015-10-13 TICK WIKI/AAPL open: 110.82 close: 111.79\n",
      "2015-10-13 POSITION value:129.500 upnl:17.710 rpnl:0.000\n",
      "2015-10-14 TICK WIKI/AAPL open: 111.29 close: 110.21\n",
      "2015-10-14 POSITION value:129.500 upnl:19.290 rpnl:0.000\n",
      "2015-10-15 TICK WIKI/AAPL open: 110.93 close: 111.86\n",
      "2015-10-15 POSITION value:129.500 upnl:17.640 rpnl:0.000\n",
      "2015-10-16 TICK WIKI/AAPL open: 111.78 close: 111.04\n",
      "2015-10-16 POSITION value:129.500 upnl:18.460 rpnl:0.000\n",
      "2015-10-19 TICK WIKI/AAPL open: 110.8 close: 111.73\n",
      "2015-10-19 POSITION value:129.500 upnl:17.770 rpnl:0.000\n",
      "2015-10-20 TICK WIKI/AAPL open: 111.34 close: 113.77\n",
      "2015-10-20 POSITION value:129.500 upnl:15.730 rpnl:0.000\n",
      "2015-10-21 TICK WIKI/AAPL open: 114.0 close: 113.76\n",
      "2015-10-21 POSITION value:129.500 upnl:15.740 rpnl:0.000\n",
      "2015-10-22 TICK WIKI/AAPL open: 114.33 close: 115.5\n",
      "2015-10-22 POSITION value:129.500 upnl:14.000 rpnl:0.000\n",
      "2015-10-23 TICK WIKI/AAPL open: 116.7 close: 119.08\n",
      "2015-10-23 POSITION value:129.500 upnl:10.420 rpnl:0.000\n",
      "2015-10-26 TICK WIKI/AAPL open: 118.08 close: 115.28\n",
      "2015-10-26 POSITION value:129.500 upnl:14.220 rpnl:0.000\n",
      "2015-10-27 TICK WIKI/AAPL open: 115.4 close: 114.55\n",
      "2015-10-27 POSITION value:129.500 upnl:14.950 rpnl:0.000\n",
      "2015-10-28 TICK WIKI/AAPL open: 116.93 close: 119.27\n",
      "2015-10-28 POSITION value:129.500 upnl:10.230 rpnl:0.000\n",
      "2015-10-29 TICK WIKI/AAPL open: 118.7 close: 120.53\n",
      "2015-10-29 POSITION value:129.500 upnl:8.970 rpnl:0.000\n",
      "2015-10-30 TICK WIKI/AAPL open: 120.99 close: 119.5\n",
      "2015-10-30 POSITION value:129.500 upnl:10.000 rpnl:0.000\n",
      "2015-11-02 TICK WIKI/AAPL open: 119.87 close: 121.18\n",
      "2015-11-02 POSITION value:129.500 upnl:8.320 rpnl:0.000\n",
      "2015-11-03 TICK WIKI/AAPL open: 120.79 close: 122.57\n",
      "2015-11-03 POSITION value:129.500 upnl:6.930 rpnl:0.000\n",
      "2015-11-04 TICK WIKI/AAPL open: 123.13 close: 122.0\n",
      "2015-11-04 POSITION value:129.500 upnl:7.500 rpnl:0.000\n",
      "2015-11-05 TICK WIKI/AAPL open: 121.85 close: 120.92\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2015-11-05 POSITION value:129.500 upnl:8.580 rpnl:0.000\n",
      "2015-11-06 TICK WIKI/AAPL open: 121.11 close: 121.06\n",
      "2015-11-06 POSITION value:129.500 upnl:8.440 rpnl:0.000\n",
      "2015-11-09 TICK WIKI/AAPL open: 120.96 close: 120.57\n",
      "2015-11-09 POSITION value:129.500 upnl:8.930 rpnl:0.000\n",
      "2015-11-10 TICK WIKI/AAPL open: 116.9 close: 116.77\n",
      "2015-11-10 POSITION value:129.500 upnl:12.730 rpnl:0.000\n",
      "2015-11-11 TICK WIKI/AAPL open: 116.37 close: 116.11\n",
      "2015-11-11 POSITION value:129.500 upnl:13.390 rpnl:0.000\n",
      "2015-11-12 TICK WIKI/AAPL open: 116.26 close: 115.72\n",
      "2015-11-12 POSITION value:129.500 upnl:13.780 rpnl:0.000\n",
      "2015-11-13 TICK WIKI/AAPL open: 115.2 close: 112.34\n",
      "2015-11-13 POSITION value:129.500 upnl:17.160 rpnl:0.000\n",
      "2015-11-16 TICK WIKI/AAPL open: 111.38 close: 114.175\n",
      "2015-11-16 POSITION value:129.500 upnl:15.325 rpnl:0.000\n",
      "2015-11-17 TICK WIKI/AAPL open: 114.92 close: 113.69\n",
      "2015-11-17 POSITION value:129.500 upnl:15.810 rpnl:0.000\n",
      "2015-11-18 TICK WIKI/AAPL open: 115.76 close: 117.29\n",
      "2015-11-18 POSITION value:129.500 upnl:12.210 rpnl:0.000\n",
      "2015-11-19 TICK WIKI/AAPL open: 117.64 close: 118.78\n",
      "2015-11-19 POSITION value:129.500 upnl:10.720 rpnl:0.000\n",
      "2015-11-20 TICK WIKI/AAPL open: 119.2 close: 119.3\n",
      "2015-11-20 POSITION value:129.500 upnl:10.200 rpnl:0.000\n",
      "2015-11-23 TICK WIKI/AAPL open: 119.27 close: 117.75\n",
      "2015-11-23 POSITION value:129.500 upnl:11.750 rpnl:0.000\n",
      "2015-11-24 TICK WIKI/AAPL open: 117.33 close: 118.88\n",
      "2015-11-24 POSITION value:129.500 upnl:10.620 rpnl:0.000\n",
      "2015-11-25 TICK WIKI/AAPL open: 119.21 close: 118.03\n",
      "2015-11-25 POSITION value:129.500 upnl:11.470 rpnl:0.000\n",
      "2015-11-27 TICK WIKI/AAPL open: 118.29 close: 117.81\n",
      "2015-11-27 POSITION value:129.500 upnl:11.690 rpnl:0.000\n",
      "2015-11-30 TICK WIKI/AAPL open: 117.99 close: 118.3\n",
      "2015-11-30 POSITION value:129.500 upnl:11.200 rpnl:0.000\n",
      "2015-12-01 TICK WIKI/AAPL open: 118.75 close: 117.34\n",
      "2015-12-01 POSITION value:129.500 upnl:12.160 rpnl:0.000\n",
      "2015-12-02 TICK WIKI/AAPL open: 117.05 close: 116.28\n",
      "2015-12-02 POSITION value:129.500 upnl:13.220 rpnl:0.000\n",
      "2015-12-03 TICK WIKI/AAPL open: 116.55 close: 115.2\n",
      "2015-12-03 POSITION value:129.500 upnl:14.300 rpnl:0.000\n",
      "2015-12-04 TICK WIKI/AAPL open: 115.29 close: 119.03\n",
      "2015-12-04 POSITION value:129.500 upnl:10.470 rpnl:0.000\n",
      "2015-12-07 TICK WIKI/AAPL open: 118.98 close: 118.28\n",
      "2015-12-07 POSITION value:129.500 upnl:11.220 rpnl:0.000\n",
      "2015-12-08 TICK WIKI/AAPL open: 117.52 close: 118.23\n",
      "2015-12-08 POSITION value:129.500 upnl:11.270 rpnl:0.000\n",
      "2015-12-09 TICK WIKI/AAPL open: 117.64 close: 115.62\n",
      "2015-12-09 POSITION value:129.500 upnl:13.880 rpnl:0.000\n",
      "2015-12-10 TICK WIKI/AAPL open: 116.04 close: 116.17\n",
      "2015-12-10 POSITION value:129.500 upnl:13.330 rpnl:0.000\n",
      "2015-12-11 TICK WIKI/AAPL open: 115.19 close: 113.18\n",
      "2015-12-11 POSITION value:129.500 upnl:16.320 rpnl:0.000\n",
      "2015-12-14 TICK WIKI/AAPL open: 112.18 close: 112.48\n",
      "2015-12-14 POSITION value:129.500 upnl:17.020 rpnl:0.000\n",
      "2015-12-15 TICK WIKI/AAPL open: 111.94 close: 110.49\n",
      "2015-12-15 POSITION value:129.500 upnl:19.010 rpnl:0.000\n",
      "2015-12-16 TICK WIKI/AAPL open: 111.07 close: 111.34\n",
      "2015-12-16 POSITION value:129.500 upnl:18.160 rpnl:0.000\n",
      "2015-12-17 TICK WIKI/AAPL open: 112.02 close: 108.98\n",
      "2015-12-17 POSITION value:129.500 upnl:20.520 rpnl:0.000\n",
      "2015-12-18 TICK WIKI/AAPL open: 108.91 close: 106.03\n",
      "2015-12-18 POSITION value:129.500 upnl:23.470 rpnl:0.000\n",
      "2015-12-21 TICK WIKI/AAPL open: 107.28 close: 107.33\n",
      "2015-12-21 POSITION value:129.500 upnl:22.170 rpnl:0.000\n",
      "2015-12-22 TICK WIKI/AAPL open: 107.4 close: 107.23\n",
      "2015-12-22 POSITION value:129.500 upnl:22.270 rpnl:0.000\n",
      "2015-12-23 TICK WIKI/AAPL open: 107.27 close: 108.61\n",
      "2015-12-23 POSITION value:129.500 upnl:20.890 rpnl:0.000\n",
      "2015-12-24 TICK WIKI/AAPL open: 109.0 close: 108.03\n",
      "2015-12-24 POSITION value:129.500 upnl:21.470 rpnl:0.000\n",
      "2015-12-28 TICK WIKI/AAPL open: 107.59 close: 106.82\n",
      "2015-12-28 POSITION value:129.500 upnl:22.680 rpnl:0.000\n",
      "2015-12-29 TICK WIKI/AAPL open: 106.96 close: 108.74\n",
      "2015-12-29 POSITION value:129.500 upnl:20.760 rpnl:0.000\n",
      "2015-12-30 TICK WIKI/AAPL open: 108.58 close: 107.32\n",
      "2015-12-30 POSITION value:129.500 upnl:22.180 rpnl:0.000\n",
      "2015-12-31 TICK WIKI/AAPL open: 107.01 close: 105.26\n",
      "2015-12-31 POSITION value:129.500 upnl:24.240 rpnl:0.000\n",
      "2016-01-04 TICK WIKI/AAPL open: 102.61 close: 105.35\n",
      "2016-01-04 POSITION value:129.500 upnl:24.150 rpnl:0.000\n",
      "2016-01-05 TICK WIKI/AAPL open: 105.75 close: 102.71\n",
      "2016-01-05 POSITION value:129.500 upnl:26.790 rpnl:0.000\n",
      "2016-01-06 TICK WIKI/AAPL open: 100.56 close: 100.7\n",
      "2016-01-06 POSITION value:129.500 upnl:28.800 rpnl:0.000\n",
      "2016-01-07 TICK WIKI/AAPL open: 98.68 close: 96.45\n",
      "2016-01-07 POSITION value:129.500 upnl:33.050 rpnl:0.000\n",
      "2016-01-08 TICK WIKI/AAPL open: 98.55 close: 96.96\n",
      "2016-01-08 POSITION value:129.500 upnl:32.540 rpnl:0.000\n",
      "2016-01-11 TICK WIKI/AAPL open: 98.97 close: 98.53\n",
      "2016-01-11 POSITION value:129.500 upnl:30.970 rpnl:0.000\n",
      "2016-01-12 TICK WIKI/AAPL open: 100.55 close: 99.96\n",
      "2016-01-12 POSITION value:129.500 upnl:29.540 rpnl:0.000\n",
      "2016-01-13 TICK WIKI/AAPL open: 100.32 close: 97.39\n",
      "2016-01-13 POSITION value:129.500 upnl:32.110 rpnl:0.000\n",
      "2016-01-14 TICK WIKI/AAPL open: 97.96 close: 99.52\n",
      "2016-01-14 POSITION value:129.500 upnl:29.980 rpnl:0.000\n",
      "2016-01-15 TICK WIKI/AAPL open: 96.2 close: 97.13\n",
      "2016-01-15 POSITION value:129.500 upnl:32.370 rpnl:0.000\n",
      "2016-01-19 TICK WIKI/AAPL open: 98.41 close: 96.66\n",
      "2016-01-19 POSITION value:129.500 upnl:32.840 rpnl:0.000\n",
      "2016-01-20 TICK WIKI/AAPL open: 95.1 close: 96.79\n",
      "2016-01-20 POSITION value:129.500 upnl:32.710 rpnl:0.000\n",
      "2016-01-21 TICK WIKI/AAPL open: 97.06 close: 96.3\n",
      "2016-01-21 POSITION value:129.500 upnl:33.200 rpnl:0.000\n",
      "2016-01-22 TICK WIKI/AAPL open: 98.63 close: 101.42\n",
      "2016-01-22 POSITION value:129.500 upnl:28.080 rpnl:0.000\n",
      "2016-01-25 TICK WIKI/AAPL open: 101.52 close: 99.44\n",
      "2016-01-25 POSITION value:129.500 upnl:30.060 rpnl:0.000\n",
      "2016-01-26 TICK WIKI/AAPL open: 99.93 close: 99.99\n",
      "2016-01-26 POSITION value:129.500 upnl:29.510 rpnl:0.000\n",
      "2016-01-27 TICK WIKI/AAPL open: 96.04 close: 93.42\n",
      "2016-01-27 POSITION value:129.500 upnl:36.080 rpnl:0.000\n",
      "2016-01-28 TICK WIKI/AAPL open: 93.79 close: 94.09\n",
      "2016-01-28 POSITION value:129.500 upnl:35.410 rpnl:0.000\n",
      "2016-01-29 TICK WIKI/AAPL open: 94.79 close: 97.34\n",
      "2016-01-29 POSITION value:129.500 upnl:32.160 rpnl:0.000\n",
      "2016-02-01 TICK WIKI/AAPL open: 96.47 close: 96.43\n",
      "2016-02-01 POSITION value:129.500 upnl:33.070 rpnl:0.000\n",
      "2016-02-02 TICK WIKI/AAPL open: 95.42 close: 94.48\n",
      "2016-02-02 POSITION value:129.500 upnl:35.020 rpnl:0.000\n",
      "2016-02-03 TICK WIKI/AAPL open: 95.0 close: 96.35\n",
      "2016-02-03 POSITION value:129.500 upnl:33.150 rpnl:0.000\n",
      "2016-02-04 TICK WIKI/AAPL open: 95.86 close: 96.6\n",
      "2016-02-04 POSITION value:129.500 upnl:32.900 rpnl:0.000\n",
      "2016-02-05 TICK WIKI/AAPL open: 96.52 close: 94.02\n",
      "2016-02-05 POSITION value:129.500 upnl:35.480 rpnl:0.000\n",
      "2016-02-08 TICK WIKI/AAPL open: 93.13 close: 95.01\n",
      "2016-02-08 POSITION value:129.500 upnl:34.490 rpnl:0.000\n",
      "2016-02-09 TICK WIKI/AAPL open: 94.29 close: 94.99\n",
      "2016-02-09 POSITION value:129.500 upnl:34.510 rpnl:0.000\n",
      "2016-02-10 TICK WIKI/AAPL open: 95.92 close: 94.27\n",
      "2016-02-10 POSITION value:129.500 upnl:35.230 rpnl:0.000\n",
      "2016-02-11 TICK WIKI/AAPL open: 93.79 close: 93.7\n",
      "2016-02-11 POSITION value:129.500 upnl:35.800 rpnl:0.000\n",
      "2016-02-12 TICK WIKI/AAPL open: 94.19 close: 93.99\n",
      "2016-02-12 POSITION value:129.500 upnl:35.510 rpnl:0.000\n",
      "2016-02-16 TICK WIKI/AAPL open: 95.02 close: 96.64\n",
      "2016-02-16 POSITION value:129.500 upnl:32.860 rpnl:0.000\n",
      "2016-02-17 TICK WIKI/AAPL open: 96.67 close: 98.12\n",
      "2016-02-17 POSITION value:129.500 upnl:31.380 rpnl:0.000\n",
      "2016-02-18 TICK WIKI/AAPL open: 98.84 close: 96.26\n",
      "2016-02-18 POSITION value:129.500 upnl:33.240 rpnl:0.000\n",
      "2016-02-19 TICK WIKI/AAPL open: 96.0 close: 96.04\n",
      "2016-02-19 POSITION value:129.500 upnl:33.460 rpnl:0.000\n",
      "2016-02-22 TICK WIKI/AAPL open: 96.31 close: 96.88\n",
      "2016-02-22 POSITION value:129.500 upnl:32.620 rpnl:0.000\n",
      "2016-02-23 TICK WIKI/AAPL open: 96.4 close: 94.69\n",
      "2016-02-23 POSITION value:129.500 upnl:34.810 rpnl:0.000\n",
      "2016-02-24 TICK WIKI/AAPL open: 93.98 close: 96.1\n",
      "2016-02-24 POSITION value:129.500 upnl:33.400 rpnl:0.000\n",
      "2016-02-25 TICK WIKI/AAPL open: 96.05 close: 96.76\n",
      "2016-02-25 POSITION value:129.500 upnl:32.740 rpnl:0.000\n",
      "2016-02-26 TICK WIKI/AAPL open: 97.2 close: 96.91\n",
      "2016-02-26 POSITION value:129.500 upnl:32.590 rpnl:0.000\n",
      "2016-02-29 TICK WIKI/AAPL open: 96.86 close: 96.69\n",
      "2016-02-29 POSITION value:129.500 upnl:32.810 rpnl:0.000\n",
      "2016-03-01 TICK WIKI/AAPL open: 97.65 close: 100.53\n",
      "2016-03-01 POSITION value:129.500 upnl:28.970 rpnl:0.000\n",
      "2016-03-02 TICK WIKI/AAPL open: 100.51 close: 100.75\n",
      "2016-03-02 POSITION value:129.500 upnl:28.750 rpnl:0.000\n",
      "2016-03-03 TICK WIKI/AAPL open: 100.58 close: 101.5\n",
      "2016-03-03 POSITION value:129.500 upnl:28.000 rpnl:0.000\n",
      "2016-03-04 TICK WIKI/AAPL open: 102.37 close: 103.01\n",
      "2016-03-04 POSITION value:129.500 upnl:26.490 rpnl:0.000\n",
      "2016-03-07 TICK WIKI/AAPL open: 102.39 close: 101.87\n",
      "2016-03-07 POSITION value:129.500 upnl:27.630 rpnl:0.000\n",
      "2016-03-08 TICK WIKI/AAPL open: 100.78 close: 101.03\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2016-03-08 POSITION value:129.500 upnl:28.470 rpnl:0.000\n",
      "2016-03-09 TICK WIKI/AAPL open: 101.31 close: 101.12\n",
      "2016-03-09 POSITION value:129.500 upnl:28.380 rpnl:0.000\n",
      "2016-03-10 TICK WIKI/AAPL open: 101.41 close: 101.17\n",
      "2016-03-10 POSITION value:129.500 upnl:28.330 rpnl:0.000\n",
      "2016-03-11 TICK WIKI/AAPL open: 102.24 close: 102.26\n",
      "2016-03-11 POSITION value:129.500 upnl:27.240 rpnl:0.000\n",
      "2016-03-14 TICK WIKI/AAPL open: 101.91 close: 102.52\n",
      "2016-03-14 POSITION value:129.500 upnl:26.980 rpnl:0.000\n",
      "2016-03-15 TICK WIKI/AAPL open: 103.96 close: 104.58\n",
      "2016-03-15 POSITION value:129.500 upnl:24.920 rpnl:0.000\n",
      "2016-03-16 TICK WIKI/AAPL open: 104.61 close: 105.97\n",
      "2016-03-16 POSITION value:129.500 upnl:23.530 rpnl:0.000\n",
      "2016-03-17 TICK WIKI/AAPL open: 105.52 close: 105.8\n",
      "2016-03-17 POSITION value:129.500 upnl:23.700 rpnl:0.000\n",
      "2016-03-18 TICK WIKI/AAPL open: 106.34 close: 105.92\n",
      "2016-03-18 POSITION value:129.500 upnl:23.580 rpnl:0.000\n",
      "2016-03-21 TICK WIKI/AAPL open: 105.93 close: 105.91\n",
      "2016-03-21 POSITION value:129.500 upnl:23.590 rpnl:0.000\n",
      "2016-03-22 TICK WIKI/AAPL open: 105.25 close: 106.72\n",
      "2016-03-22 POSITION value:129.500 upnl:22.780 rpnl:0.000\n",
      "2016-03-23 TICK WIKI/AAPL open: 106.48 close: 106.13\n",
      "2016-03-23 POSITION value:129.500 upnl:23.370 rpnl:0.000\n",
      "2016-03-24 TICK WIKI/AAPL open: 105.47 close: 105.67\n",
      "2016-03-24 POSITION value:129.500 upnl:23.830 rpnl:0.000\n",
      "2016-03-28 TICK WIKI/AAPL open: 106.0 close: 105.19\n",
      "2016-03-28 POSITION value:129.500 upnl:24.310 rpnl:0.000\n",
      "2016-03-29 TICK WIKI/AAPL open: 104.89 close: 107.68\n",
      "2016-03-29 POSITION value:129.500 upnl:21.820 rpnl:0.000\n",
      "2016-03-30 TICK WIKI/AAPL open: 108.65 close: 109.56\n",
      "2016-03-30 POSITION value:129.500 upnl:19.940 rpnl:0.000\n",
      "2016-03-31 TICK WIKI/AAPL open: 109.72 close: 108.99\n",
      "2016-03-31 POSITION value:129.500 upnl:20.510 rpnl:0.000\n",
      "2016-04-01 TICK WIKI/AAPL open: 108.78 close: 109.99\n",
      "2016-04-01 POSITION value:129.500 upnl:19.510 rpnl:0.000\n",
      "2016-04-04 TICK WIKI/AAPL open: 110.42 close: 111.12\n",
      "2016-04-04 POSITION value:129.500 upnl:18.380 rpnl:0.000\n",
      "2016-04-05 TICK WIKI/AAPL open: 109.51 close: 109.81\n",
      "2016-04-05 POSITION value:129.500 upnl:19.690 rpnl:0.000\n",
      "2016-04-06 TICK WIKI/AAPL open: 110.23 close: 110.96\n",
      "2016-04-06 POSITION value:129.500 upnl:18.540 rpnl:0.000\n",
      "2016-04-07 TICK WIKI/AAPL open: 109.95 close: 108.54\n",
      "2016-04-07 POSITION value:129.500 upnl:20.960 rpnl:0.000\n",
      "2016-04-08 TICK WIKI/AAPL open: 108.91 close: 108.66\n",
      "2016-04-08 POSITION value:129.500 upnl:20.840 rpnl:0.000\n",
      "2016-04-11 TICK WIKI/AAPL open: 108.97 close: 109.02\n",
      "2016-04-11 POSITION value:129.500 upnl:20.480 rpnl:0.000\n",
      "2016-04-12 TICK WIKI/AAPL open: 109.34 close: 110.44\n",
      "2016-04-12 POSITION value:129.500 upnl:19.060 rpnl:0.000\n",
      "2016-04-13 TICK WIKI/AAPL open: 110.8 close: 112.04\n",
      "2016-04-13 POSITION value:129.500 upnl:17.460 rpnl:0.000\n",
      "2016-04-14 TICK WIKI/AAPL open: 111.62 close: 112.1\n",
      "2016-04-14 POSITION value:129.500 upnl:17.400 rpnl:0.000\n",
      "2016-04-15 TICK WIKI/AAPL open: 112.11 close: 109.85\n",
      "2016-04-15 POSITION value:129.500 upnl:19.650 rpnl:0.000\n",
      "2016-04-18 TICK WIKI/AAPL open: 108.89 close: 107.48\n",
      "2016-04-18 POSITION value:129.500 upnl:22.020 rpnl:0.000\n",
      "2016-04-19 TICK WIKI/AAPL open: 107.88 close: 106.91\n",
      "2016-04-19 POSITION value:129.500 upnl:22.590 rpnl:0.000\n",
      "2016-04-20 TICK WIKI/AAPL open: 106.64 close: 107.13\n",
      "2016-04-20 POSITION value:129.500 upnl:22.370 rpnl:0.000\n",
      "2016-04-21 TICK WIKI/AAPL open: 106.93 close: 105.97\n",
      "2016-04-21 POSITION value:129.500 upnl:23.530 rpnl:0.000\n",
      "2016-04-22 TICK WIKI/AAPL open: 105.01 close: 105.68\n",
      "2016-04-22 POSITION value:129.500 upnl:23.820 rpnl:0.000\n",
      "2016-04-25 TICK WIKI/AAPL open: 105.0 close: 105.08\n",
      "2016-04-25 POSITION value:129.500 upnl:24.420 rpnl:0.000\n",
      "2016-04-26 TICK WIKI/AAPL open: 103.91 close: 104.35\n",
      "2016-04-26 POSITION value:129.500 upnl:25.150 rpnl:0.000\n",
      "2016-04-27 TICK WIKI/AAPL open: 96.0 close: 97.82\n",
      "2016-04-27 BUY signal\n",
      "2016-04-27 ORDER BUY WIKI/AAPL 1\n",
      "2016-04-27 POSITION value:129.500 upnl:31.680 rpnl:0.000\n",
      "2016-04-28 TICK WIKI/AAPL open: 97.61 close: 94.83\n",
      "2016-04-28 FILLED BUY 1 WIKI/AAPL at 97.61\n",
      "2016-04-28 POSITION value:0.000 upnl:0.000 rpnl:31.890\n",
      "2016-04-29 TICK WIKI/AAPL open: 93.99 close: 93.74\n",
      "2016-04-29 POSITION value:0.000 upnl:0.000 rpnl:31.890\n",
      "2016-05-02 TICK WIKI/AAPL open: 93.965 close: 93.64\n",
      "2016-05-02 POSITION value:0.000 upnl:0.000 rpnl:31.890\n",
      "2016-05-03 TICK WIKI/AAPL open: 94.2 close: 95.18\n",
      "2016-05-03 POSITION value:0.000 upnl:0.000 rpnl:31.890\n",
      "2016-05-04 TICK WIKI/AAPL open: 95.2 close: 94.19\n",
      "2016-05-04 POSITION value:0.000 upnl:0.000 rpnl:31.890\n",
      "2016-05-05 TICK WIKI/AAPL open: 94.0 close: 93.24\n",
      "2016-05-05 POSITION value:0.000 upnl:0.000 rpnl:31.890\n",
      "2016-05-06 TICK WIKI/AAPL open: 93.37 close: 92.72\n",
      "2016-05-06 POSITION value:0.000 upnl:0.000 rpnl:31.890\n",
      "2016-05-09 TICK WIKI/AAPL open: 93.0 close: 92.79\n",
      "2016-05-09 POSITION value:0.000 upnl:0.000 rpnl:31.890\n",
      "2016-05-10 TICK WIKI/AAPL open: 93.33 close: 93.42\n",
      "2016-05-10 POSITION value:0.000 upnl:0.000 rpnl:31.890\n",
      "2016-05-11 TICK WIKI/AAPL open: 93.48 close: 92.51\n",
      "2016-05-11 POSITION value:0.000 upnl:0.000 rpnl:31.890\n",
      "2016-05-12 TICK WIKI/AAPL open: 92.72 close: 90.34\n",
      "2016-05-12 POSITION value:0.000 upnl:0.000 rpnl:31.890\n",
      "2016-05-13 TICK WIKI/AAPL open: 90.0 close: 90.52\n",
      "2016-05-13 POSITION value:0.000 upnl:0.000 rpnl:31.890\n",
      "2016-05-16 TICK WIKI/AAPL open: 92.39 close: 93.88\n",
      "2016-05-16 SELL signal\n",
      "2016-05-16 ORDER SELL WIKI/AAPL 1\n",
      "2016-05-16 POSITION value:0.000 upnl:0.000 rpnl:31.890\n",
      "2016-05-17 TICK WIKI/AAPL open: 94.55 close: 93.49\n",
      "2016-05-17 FILLED SELL 1 WIKI/AAPL at 94.55\n",
      "2016-05-17 POSITION value:94.550 upnl:1.060 rpnl:31.890\n",
      "2016-05-18 TICK WIKI/AAPL open: 94.16 close: 94.56\n",
      "2016-05-18 POSITION value:94.550 upnl:-0.010 rpnl:31.890\n",
      "2016-05-19 TICK WIKI/AAPL open: 94.64 close: 94.2\n",
      "2016-05-19 POSITION value:94.550 upnl:0.350 rpnl:31.890\n",
      "2016-05-20 TICK WIKI/AAPL open: 94.64 close: 95.22\n",
      "2016-05-20 POSITION value:94.550 upnl:-0.670 rpnl:31.890\n",
      "2016-05-23 TICK WIKI/AAPL open: 95.87 close: 96.43\n",
      "2016-05-23 POSITION value:94.550 upnl:-1.880 rpnl:31.890\n",
      "2016-05-24 TICK WIKI/AAPL open: 97.22 close: 97.9\n",
      "2016-05-24 POSITION value:94.550 upnl:-3.350 rpnl:31.890\n",
      "2016-05-25 TICK WIKI/AAPL open: 98.67 close: 99.62\n",
      "2016-05-25 POSITION value:94.550 upnl:-5.070 rpnl:31.890\n",
      "2016-05-26 TICK WIKI/AAPL open: 99.68 close: 100.41\n",
      "2016-05-26 POSITION value:94.550 upnl:-5.860 rpnl:31.890\n",
      "2016-05-27 TICK WIKI/AAPL open: 99.44 close: 100.35\n",
      "2016-05-27 POSITION value:94.550 upnl:-5.800 rpnl:31.890\n",
      "2016-05-31 TICK WIKI/AAPL open: 99.6 close: 99.86\n",
      "2016-05-31 POSITION value:94.550 upnl:-5.310 rpnl:31.890\n",
      "2016-06-01 TICK WIKI/AAPL open: 99.02 close: 98.46\n",
      "2016-06-01 POSITION value:94.550 upnl:-3.910 rpnl:31.890\n",
      "2016-06-02 TICK WIKI/AAPL open: 97.6 close: 97.72\n",
      "2016-06-02 POSITION value:94.550 upnl:-3.170 rpnl:31.890\n",
      "2016-06-03 TICK WIKI/AAPL open: 97.79 close: 97.92\n",
      "2016-06-03 POSITION value:94.550 upnl:-3.370 rpnl:31.890\n",
      "2016-06-06 TICK WIKI/AAPL open: 97.99 close: 98.63\n",
      "2016-06-06 POSITION value:94.550 upnl:-4.080 rpnl:31.890\n",
      "2016-06-07 TICK WIKI/AAPL open: 99.25 close: 99.03\n",
      "2016-06-07 POSITION value:94.550 upnl:-4.480 rpnl:31.890\n",
      "2016-06-08 TICK WIKI/AAPL open: 99.02 close: 98.94\n",
      "2016-06-08 POSITION value:94.550 upnl:-4.390 rpnl:31.890\n",
      "2016-06-09 TICK WIKI/AAPL open: 98.5 close: 99.65\n",
      "2016-06-09 POSITION value:94.550 upnl:-5.100 rpnl:31.890\n",
      "2016-06-10 TICK WIKI/AAPL open: 98.53 close: 98.83\n",
      "2016-06-10 POSITION value:94.550 upnl:-4.280 rpnl:31.890\n",
      "2016-06-13 TICK WIKI/AAPL open: 98.69 close: 97.34\n",
      "2016-06-13 POSITION value:94.550 upnl:-2.790 rpnl:31.890\n",
      "2016-06-14 TICK WIKI/AAPL open: 97.32 close: 97.46\n",
      "2016-06-14 POSITION value:94.550 upnl:-2.910 rpnl:31.890\n",
      "2016-06-15 TICK WIKI/AAPL open: 97.82 close: 97.14\n",
      "2016-06-15 POSITION value:94.550 upnl:-2.590 rpnl:31.890\n",
      "2016-06-16 TICK WIKI/AAPL open: 96.45 close: 97.55\n",
      "2016-06-16 POSITION value:94.550 upnl:-3.000 rpnl:31.890\n",
      "2016-06-17 TICK WIKI/AAPL open: 96.62 close: 95.33\n",
      "2016-06-17 POSITION value:94.550 upnl:-0.780 rpnl:31.890\n",
      "2016-06-20 TICK WIKI/AAPL open: 96.0 close: 95.1\n",
      "2016-06-20 POSITION value:94.550 upnl:-0.550 rpnl:31.890\n",
      "2016-06-21 TICK WIKI/AAPL open: 94.94 close: 95.91\n",
      "2016-06-21 POSITION value:94.550 upnl:-1.360 rpnl:31.890\n",
      "2016-06-22 TICK WIKI/AAPL open: 96.25 close: 95.55\n",
      "2016-06-22 POSITION value:94.550 upnl:-1.000 rpnl:31.890\n",
      "2016-06-23 TICK WIKI/AAPL open: 95.94 close: 96.1\n",
      "2016-06-23 POSITION value:94.550 upnl:-1.550 rpnl:31.890\n",
      "2016-06-24 TICK WIKI/AAPL open: 92.91 close: 93.4\n",
      "2016-06-24 POSITION value:94.550 upnl:1.150 rpnl:31.890\n",
      "2016-06-27 TICK WIKI/AAPL open: 93.0 close: 92.04\n",
      "2016-06-27 POSITION value:94.550 upnl:2.510 rpnl:31.890\n",
      "2016-06-28 TICK WIKI/AAPL open: 92.9 close: 93.59\n",
      "2016-06-28 POSITION value:94.550 upnl:0.960 rpnl:31.890\n",
      "2016-06-29 TICK WIKI/AAPL open: 93.97 close: 94.4\n",
      "2016-06-29 POSITION value:94.550 upnl:0.150 rpnl:31.890\n",
      "2016-06-30 TICK WIKI/AAPL open: 94.44 close: 95.6\n",
      "2016-06-30 POSITION value:94.550 upnl:-1.050 rpnl:31.890\n",
      "2016-07-01 TICK WIKI/AAPL open: 95.49 close: 95.89\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2016-07-01 POSITION value:94.550 upnl:-1.340 rpnl:31.890\n",
      "2016-07-05 TICK WIKI/AAPL open: 95.39 close: 94.99\n",
      "2016-07-05 POSITION value:94.550 upnl:-0.440 rpnl:31.890\n",
      "2016-07-06 TICK WIKI/AAPL open: 94.6 close: 95.53\n",
      "2016-07-06 POSITION value:94.550 upnl:-0.980 rpnl:31.890\n",
      "2016-07-07 TICK WIKI/AAPL open: 95.7 close: 95.94\n",
      "2016-07-07 POSITION value:94.550 upnl:-1.390 rpnl:31.890\n",
      "2016-07-08 TICK WIKI/AAPL open: 96.49 close: 96.68\n",
      "2016-07-08 POSITION value:94.550 upnl:-2.130 rpnl:31.890\n",
      "2016-07-11 TICK WIKI/AAPL open: 96.75 close: 96.98\n",
      "2016-07-11 POSITION value:94.550 upnl:-2.430 rpnl:31.890\n",
      "2016-07-12 TICK WIKI/AAPL open: 97.17 close: 97.42\n",
      "2016-07-12 POSITION value:94.550 upnl:-2.870 rpnl:31.890\n",
      "2016-07-13 TICK WIKI/AAPL open: 97.41 close: 96.87\n",
      "2016-07-13 POSITION value:94.550 upnl:-2.320 rpnl:31.890\n",
      "2016-07-14 TICK WIKI/AAPL open: 97.39 close: 98.79\n",
      "2016-07-14 POSITION value:94.550 upnl:-4.240 rpnl:31.890\n",
      "2016-07-15 TICK WIKI/AAPL open: 98.92 close: 98.78\n",
      "2016-07-15 POSITION value:94.550 upnl:-4.230 rpnl:31.890\n",
      "2016-07-18 TICK WIKI/AAPL open: 98.7 close: 99.83\n",
      "2016-07-18 POSITION value:94.550 upnl:-5.280 rpnl:31.890\n",
      "2016-07-19 TICK WIKI/AAPL open: 99.56 close: 99.87\n",
      "2016-07-19 POSITION value:94.550 upnl:-5.320 rpnl:31.890\n",
      "2016-07-20 TICK WIKI/AAPL open: 100.0 close: 99.96\n",
      "2016-07-20 POSITION value:94.550 upnl:-5.410 rpnl:31.890\n",
      "2016-07-21 TICK WIKI/AAPL open: 99.83 close: 99.43\n",
      "2016-07-21 POSITION value:94.550 upnl:-4.880 rpnl:31.890\n",
      "2016-07-22 TICK WIKI/AAPL open: 99.26 close: 98.66\n",
      "2016-07-22 POSITION value:94.550 upnl:-4.110 rpnl:31.890\n",
      "2016-07-25 TICK WIKI/AAPL open: 98.25 close: 97.34\n",
      "2016-07-25 POSITION value:94.550 upnl:-2.790 rpnl:31.890\n",
      "2016-07-26 TICK WIKI/AAPL open: 96.82 close: 96.67\n",
      "2016-07-26 POSITION value:94.550 upnl:-2.120 rpnl:31.890\n",
      "2016-07-27 TICK WIKI/AAPL open: 104.265 close: 102.95\n",
      "2016-07-27 POSITION value:94.550 upnl:-8.400 rpnl:31.890\n",
      "2016-07-28 TICK WIKI/AAPL open: 102.83 close: 104.34\n",
      "2016-07-28 POSITION value:94.550 upnl:-9.790 rpnl:31.890\n",
      "2016-07-29 TICK WIKI/AAPL open: 104.19 close: 104.21\n",
      "2016-07-29 POSITION value:94.550 upnl:-9.660 rpnl:31.890\n",
      "2016-08-01 TICK WIKI/AAPL open: 104.41 close: 106.05\n",
      "2016-08-01 POSITION value:94.550 upnl:-11.500 rpnl:31.890\n",
      "2016-08-02 TICK WIKI/AAPL open: 106.05 close: 104.48\n",
      "2016-08-02 POSITION value:94.550 upnl:-9.930 rpnl:31.890\n",
      "2016-08-03 TICK WIKI/AAPL open: 104.81 close: 105.79\n",
      "2016-08-03 POSITION value:94.550 upnl:-11.240 rpnl:31.890\n",
      "2016-08-04 TICK WIKI/AAPL open: 105.58 close: 105.87\n",
      "2016-08-04 POSITION value:94.550 upnl:-11.320 rpnl:31.890\n",
      "2016-08-05 TICK WIKI/AAPL open: 106.27 close: 107.48\n",
      "2016-08-05 POSITION value:94.550 upnl:-12.930 rpnl:31.890\n",
      "2016-08-08 TICK WIKI/AAPL open: 107.52 close: 108.37\n",
      "2016-08-08 POSITION value:94.550 upnl:-13.820 rpnl:31.890\n",
      "2016-08-09 TICK WIKI/AAPL open: 108.23 close: 108.81\n",
      "2016-08-09 POSITION value:94.550 upnl:-14.260 rpnl:31.890\n",
      "2016-08-10 TICK WIKI/AAPL open: 108.71 close: 108.0\n",
      "2016-08-10 POSITION value:94.550 upnl:-13.450 rpnl:31.890\n",
      "2016-08-11 TICK WIKI/AAPL open: 108.52 close: 107.93\n",
      "2016-08-11 POSITION value:94.550 upnl:-13.380 rpnl:31.890\n",
      "2016-08-12 TICK WIKI/AAPL open: 107.78 close: 108.18\n",
      "2016-08-12 POSITION value:94.550 upnl:-13.630 rpnl:31.890\n",
      "2016-08-15 TICK WIKI/AAPL open: 108.14 close: 109.48\n",
      "2016-08-15 POSITION value:94.550 upnl:-14.930 rpnl:31.890\n",
      "2016-08-16 TICK WIKI/AAPL open: 109.63 close: 109.38\n",
      "2016-08-16 POSITION value:94.550 upnl:-14.830 rpnl:31.890\n",
      "2016-08-17 TICK WIKI/AAPL open: 109.1 close: 109.22\n",
      "2016-08-17 POSITION value:94.550 upnl:-14.670 rpnl:31.890\n",
      "2016-08-18 TICK WIKI/AAPL open: 109.23 close: 109.08\n",
      "2016-08-18 POSITION value:94.550 upnl:-14.530 rpnl:31.890\n",
      "2016-08-19 TICK WIKI/AAPL open: 108.77 close: 109.36\n",
      "2016-08-19 POSITION value:94.550 upnl:-14.810 rpnl:31.890\n",
      "2016-08-22 TICK WIKI/AAPL open: 108.86 close: 108.51\n",
      "2016-08-22 POSITION value:94.550 upnl:-13.960 rpnl:31.890\n",
      "2016-08-23 TICK WIKI/AAPL open: 108.59 close: 108.85\n",
      "2016-08-23 POSITION value:94.550 upnl:-14.300 rpnl:31.890\n",
      "2016-08-24 TICK WIKI/AAPL open: 108.565 close: 108.03\n",
      "2016-08-24 POSITION value:94.550 upnl:-13.480 rpnl:31.890\n",
      "2016-08-25 TICK WIKI/AAPL open: 107.39 close: 107.57\n",
      "2016-08-25 POSITION value:94.550 upnl:-13.020 rpnl:31.890\n",
      "2016-08-26 TICK WIKI/AAPL open: 107.41 close: 106.94\n",
      "2016-08-26 POSITION value:94.550 upnl:-12.390 rpnl:31.890\n",
      "2016-08-29 TICK WIKI/AAPL open: 106.62 close: 106.82\n",
      "2016-08-29 POSITION value:94.550 upnl:-12.270 rpnl:31.890\n",
      "2016-08-30 TICK WIKI/AAPL open: 105.8 close: 106.0\n",
      "2016-08-30 POSITION value:94.550 upnl:-11.450 rpnl:31.890\n",
      "2016-08-31 TICK WIKI/AAPL open: 105.66 close: 106.1\n",
      "2016-08-31 POSITION value:94.550 upnl:-11.550 rpnl:31.890\n",
      "2016-09-01 TICK WIKI/AAPL open: 106.14 close: 106.73\n",
      "2016-09-01 POSITION value:94.550 upnl:-12.180 rpnl:31.890\n",
      "2016-09-02 TICK WIKI/AAPL open: 107.7 close: 107.73\n",
      "2016-09-02 POSITION value:94.550 upnl:-13.180 rpnl:31.890\n",
      "2016-09-06 TICK WIKI/AAPL open: 107.9 close: 107.7\n",
      "2016-09-06 POSITION value:94.550 upnl:-13.150 rpnl:31.890\n",
      "2016-09-07 TICK WIKI/AAPL open: 107.83 close: 108.36\n",
      "2016-09-07 POSITION value:94.550 upnl:-13.810 rpnl:31.890\n",
      "2016-09-08 TICK WIKI/AAPL open: 107.25 close: 105.52\n",
      "2016-09-08 BUY signal\n",
      "2016-09-08 ORDER BUY WIKI/AAPL 1\n",
      "2016-09-08 POSITION value:94.550 upnl:-10.970 rpnl:31.890\n",
      "2016-09-09 TICK WIKI/AAPL open: 104.64 close: 103.13\n",
      "2016-09-09 FILLED BUY 1 WIKI/AAPL at 104.64\n",
      "2016-09-09 POSITION value:0.000 upnl:0.000 rpnl:-10.090\n",
      "2016-09-12 TICK WIKI/AAPL open: 102.65 close: 105.44\n",
      "2016-09-12 SELL signal\n",
      "2016-09-12 ORDER SELL WIKI/AAPL 1\n",
      "2016-09-12 POSITION value:0.000 upnl:0.000 rpnl:-10.090\n",
      "2016-09-13 TICK WIKI/AAPL open: 107.51 close: 107.95\n",
      "2016-09-13 FILLED SELL 1 WIKI/AAPL at 107.51\n",
      "2016-09-13 POSITION value:107.510 upnl:-0.440 rpnl:-10.090\n",
      "2016-09-14 TICK WIKI/AAPL open: 108.73 close: 111.77\n",
      "2016-09-14 POSITION value:107.510 upnl:-4.260 rpnl:-10.090\n",
      "2016-09-15 TICK WIKI/AAPL open: 113.86 close: 115.57\n",
      "2016-09-15 POSITION value:107.510 upnl:-8.060 rpnl:-10.090\n",
      "2016-09-16 TICK WIKI/AAPL open: 115.12 close: 114.92\n",
      "2016-09-16 POSITION value:107.510 upnl:-7.410 rpnl:-10.090\n",
      "2016-09-19 TICK WIKI/AAPL open: 115.19 close: 113.58\n",
      "2016-09-19 POSITION value:107.510 upnl:-6.070 rpnl:-10.090\n",
      "2016-09-20 TICK WIKI/AAPL open: 113.05 close: 113.57\n",
      "2016-09-20 POSITION value:107.510 upnl:-6.060 rpnl:-10.090\n",
      "2016-09-21 TICK WIKI/AAPL open: 113.85 close: 113.55\n",
      "2016-09-21 POSITION value:107.510 upnl:-6.040 rpnl:-10.090\n",
      "2016-09-22 TICK WIKI/AAPL open: 114.35 close: 114.62\n",
      "2016-09-22 POSITION value:107.510 upnl:-7.110 rpnl:-10.090\n",
      "2016-09-23 TICK WIKI/AAPL open: 114.42 close: 112.71\n",
      "2016-09-23 POSITION value:107.510 upnl:-5.200 rpnl:-10.090\n",
      "2016-09-26 TICK WIKI/AAPL open: 111.64 close: 112.88\n",
      "2016-09-26 POSITION value:107.510 upnl:-5.370 rpnl:-10.090\n",
      "2016-09-27 TICK WIKI/AAPL open: 113.0 close: 113.09\n",
      "2016-09-27 POSITION value:107.510 upnl:-5.580 rpnl:-10.090\n",
      "2016-09-28 TICK WIKI/AAPL open: 113.69 close: 113.95\n",
      "2016-09-28 POSITION value:107.510 upnl:-6.440 rpnl:-10.090\n",
      "2016-09-29 TICK WIKI/AAPL open: 113.16 close: 112.18\n",
      "2016-09-29 POSITION value:107.510 upnl:-4.670 rpnl:-10.090\n",
      "2016-09-30 TICK WIKI/AAPL open: 112.46 close: 113.05\n",
      "2016-09-30 POSITION value:107.510 upnl:-5.540 rpnl:-10.090\n",
      "2016-10-03 TICK WIKI/AAPL open: 112.71 close: 112.52\n",
      "2016-10-03 POSITION value:107.510 upnl:-5.010 rpnl:-10.090\n",
      "2016-10-04 TICK WIKI/AAPL open: 113.06 close: 113.0\n",
      "2016-10-04 POSITION value:107.510 upnl:-5.490 rpnl:-10.090\n",
      "2016-10-05 TICK WIKI/AAPL open: 113.4 close: 113.05\n",
      "2016-10-05 POSITION value:107.510 upnl:-5.540 rpnl:-10.090\n",
      "2016-10-06 TICK WIKI/AAPL open: 113.7 close: 113.89\n",
      "2016-10-06 POSITION value:107.510 upnl:-6.380 rpnl:-10.090\n",
      "2016-10-07 TICK WIKI/AAPL open: 114.31 close: 114.06\n",
      "2016-10-07 POSITION value:107.510 upnl:-6.550 rpnl:-10.090\n",
      "2016-10-10 TICK WIKI/AAPL open: 115.02 close: 116.05\n",
      "2016-10-10 POSITION value:107.510 upnl:-8.540 rpnl:-10.090\n",
      "2016-10-11 TICK WIKI/AAPL open: 117.7 close: 116.3\n",
      "2016-10-11 POSITION value:107.510 upnl:-8.790 rpnl:-10.090\n",
      "2016-10-12 TICK WIKI/AAPL open: 117.35 close: 117.34\n",
      "2016-10-12 POSITION value:107.510 upnl:-9.830 rpnl:-10.090\n",
      "2016-10-13 TICK WIKI/AAPL open: 116.79 close: 116.98\n",
      "2016-10-13 POSITION value:107.510 upnl:-9.470 rpnl:-10.090\n",
      "2016-10-14 TICK WIKI/AAPL open: 117.88 close: 117.63\n",
      "2016-10-14 POSITION value:107.510 upnl:-10.120 rpnl:-10.090\n",
      "2016-10-17 TICK WIKI/AAPL open: 117.33 close: 117.55\n",
      "2016-10-17 POSITION value:107.510 upnl:-10.040 rpnl:-10.090\n",
      "2016-10-18 TICK WIKI/AAPL open: 118.18 close: 117.47\n",
      "2016-10-18 POSITION value:107.510 upnl:-9.960 rpnl:-10.090\n",
      "2016-10-19 TICK WIKI/AAPL open: 117.25 close: 117.12\n",
      "2016-10-19 POSITION value:107.510 upnl:-9.610 rpnl:-10.090\n",
      "2016-10-20 TICK WIKI/AAPL open: 116.86 close: 117.06\n",
      "2016-10-20 POSITION value:107.510 upnl:-9.550 rpnl:-10.090\n",
      "2016-10-21 TICK WIKI/AAPL open: 116.81 close: 116.6\n",
      "2016-10-21 POSITION value:107.510 upnl:-9.090 rpnl:-10.090\n",
      "2016-10-24 TICK WIKI/AAPL open: 117.1 close: 117.65\n",
      "2016-10-24 POSITION value:107.510 upnl:-10.140 rpnl:-10.090\n",
      "2016-10-25 TICK WIKI/AAPL open: 117.95 close: 118.25\n",
      "2016-10-25 POSITION value:107.510 upnl:-10.740 rpnl:-10.090\n",
      "2016-10-26 TICK WIKI/AAPL open: 114.31 close: 115.59\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2016-10-26 BUY signal\n",
      "2016-10-26 ORDER BUY WIKI/AAPL 1\n",
      "2016-10-26 POSITION value:107.510 upnl:-8.080 rpnl:-10.090\n",
      "2016-10-27 TICK WIKI/AAPL open: 115.39 close: 114.48\n",
      "2016-10-27 FILLED BUY 1 WIKI/AAPL at 115.39\n",
      "2016-10-27 POSITION value:0.000 upnl:0.000 rpnl:-7.880\n",
      "2016-10-28 TICK WIKI/AAPL open: 113.87 close: 113.72\n",
      "2016-10-28 POSITION value:0.000 upnl:0.000 rpnl:-7.880\n",
      "2016-10-31 TICK WIKI/AAPL open: 113.65 close: 113.54\n",
      "2016-10-31 POSITION value:0.000 upnl:0.000 rpnl:-7.880\n",
      "2016-11-01 TICK WIKI/AAPL open: 113.46 close: 111.49\n",
      "2016-11-01 POSITION value:0.000 upnl:0.000 rpnl:-7.880\n",
      "2016-11-02 TICK WIKI/AAPL open: 111.4 close: 111.59\n",
      "2016-11-02 POSITION value:0.000 upnl:0.000 rpnl:-7.880\n",
      "2016-11-03 TICK WIKI/AAPL open: 110.98 close: 109.83\n",
      "2016-11-03 POSITION value:0.000 upnl:0.000 rpnl:-7.880\n",
      "2016-11-04 TICK WIKI/AAPL open: 108.53 close: 108.84\n",
      "2016-11-04 POSITION value:0.000 upnl:0.000 rpnl:-7.880\n",
      "2016-11-07 TICK WIKI/AAPL open: 110.08 close: 110.41\n",
      "2016-11-07 POSITION value:0.000 upnl:0.000 rpnl:-7.880\n",
      "2016-11-08 TICK WIKI/AAPL open: 110.31 close: 111.06\n",
      "2016-11-08 POSITION value:0.000 upnl:0.000 rpnl:-7.880\n",
      "2016-11-09 TICK WIKI/AAPL open: 109.88 close: 110.88\n",
      "2016-11-09 POSITION value:0.000 upnl:0.000 rpnl:-7.880\n",
      "2016-11-10 TICK WIKI/AAPL open: 111.09 close: 107.79\n",
      "2016-11-10 POSITION value:0.000 upnl:0.000 rpnl:-7.880\n",
      "2016-11-11 TICK WIKI/AAPL open: 106.92 close: 108.43\n",
      "2016-11-11 POSITION value:0.000 upnl:0.000 rpnl:-7.880\n",
      "2016-11-14 TICK WIKI/AAPL open: 107.32 close: 105.71\n",
      "2016-11-14 POSITION value:0.000 upnl:0.000 rpnl:-7.880\n",
      "2016-11-15 TICK WIKI/AAPL open: 106.57 close: 107.11\n",
      "2016-11-15 POSITION value:0.000 upnl:0.000 rpnl:-7.880\n",
      "2016-11-16 TICK WIKI/AAPL open: 106.7 close: 109.99\n",
      "2016-11-16 SELL signal\n",
      "2016-11-16 ORDER SELL WIKI/AAPL 1\n",
      "2016-11-16 POSITION value:0.000 upnl:0.000 rpnl:-7.880\n",
      "2016-11-17 TICK WIKI/AAPL open: 109.81 close: 109.95\n",
      "2016-11-17 FILLED SELL 1 WIKI/AAPL at 109.81\n",
      "2016-11-17 POSITION value:109.810 upnl:-0.140 rpnl:-7.880\n",
      "2016-11-18 TICK WIKI/AAPL open: 109.72 close: 110.06\n",
      "2016-11-18 POSITION value:109.810 upnl:-0.250 rpnl:-7.880\n",
      "2016-11-21 TICK WIKI/AAPL open: 110.12 close: 111.73\n",
      "2016-11-21 POSITION value:109.810 upnl:-1.920 rpnl:-7.880\n",
      "2016-11-22 TICK WIKI/AAPL open: 111.95 close: 111.8\n",
      "2016-11-22 POSITION value:109.810 upnl:-1.990 rpnl:-7.880\n",
      "2016-11-23 TICK WIKI/AAPL open: 111.36 close: 111.23\n",
      "2016-11-23 POSITION value:109.810 upnl:-1.420 rpnl:-7.880\n",
      "2016-11-25 TICK WIKI/AAPL open: 111.13 close: 111.79\n",
      "2016-11-25 POSITION value:109.810 upnl:-1.980 rpnl:-7.880\n",
      "2016-11-28 TICK WIKI/AAPL open: 111.43 close: 111.57\n",
      "2016-11-28 POSITION value:109.810 upnl:-1.760 rpnl:-7.880\n",
      "2016-11-29 TICK WIKI/AAPL open: 110.78 close: 111.46\n",
      "2016-11-29 POSITION value:109.810 upnl:-1.650 rpnl:-7.880\n",
      "2016-11-30 TICK WIKI/AAPL open: 111.56 close: 110.52\n",
      "2016-11-30 POSITION value:109.810 upnl:-0.710 rpnl:-7.880\n",
      "2016-12-01 TICK WIKI/AAPL open: 110.365 close: 109.49\n",
      "2016-12-01 POSITION value:109.810 upnl:0.320 rpnl:-7.880\n",
      "2016-12-02 TICK WIKI/AAPL open: 109.17 close: 109.9\n",
      "2016-12-02 POSITION value:109.810 upnl:-0.090 rpnl:-7.880\n",
      "2016-12-05 TICK WIKI/AAPL open: 110.0 close: 109.11\n",
      "2016-12-05 POSITION value:109.810 upnl:0.700 rpnl:-7.880\n",
      "2016-12-06 TICK WIKI/AAPL open: 109.5 close: 109.95\n",
      "2016-12-06 POSITION value:109.810 upnl:-0.140 rpnl:-7.880\n",
      "2016-12-07 TICK WIKI/AAPL open: 109.26 close: 111.03\n",
      "2016-12-07 POSITION value:109.810 upnl:-1.220 rpnl:-7.880\n",
      "2016-12-08 TICK WIKI/AAPL open: 110.86 close: 112.12\n",
      "2016-12-08 POSITION value:109.810 upnl:-2.310 rpnl:-7.880\n",
      "2016-12-09 TICK WIKI/AAPL open: 112.31 close: 113.95\n",
      "2016-12-09 POSITION value:109.810 upnl:-4.140 rpnl:-7.880\n",
      "2016-12-12 TICK WIKI/AAPL open: 113.29 close: 113.3\n",
      "2016-12-12 POSITION value:109.810 upnl:-3.490 rpnl:-7.880\n",
      "2016-12-13 TICK WIKI/AAPL open: 113.84 close: 115.19\n",
      "2016-12-13 POSITION value:109.810 upnl:-5.380 rpnl:-7.880\n",
      "2016-12-14 TICK WIKI/AAPL open: 115.04 close: 115.19\n",
      "2016-12-14 POSITION value:109.810 upnl:-5.380 rpnl:-7.880\n",
      "2016-12-15 TICK WIKI/AAPL open: 115.38 close: 115.82\n",
      "2016-12-15 POSITION value:109.810 upnl:-6.010 rpnl:-7.880\n",
      "2016-12-16 TICK WIKI/AAPL open: 116.47 close: 115.97\n",
      "2016-12-16 POSITION value:109.810 upnl:-6.160 rpnl:-7.880\n",
      "2016-12-19 TICK WIKI/AAPL open: 115.8 close: 116.64\n",
      "2016-12-19 POSITION value:109.810 upnl:-6.830 rpnl:-7.880\n",
      "2016-12-20 TICK WIKI/AAPL open: 116.74 close: 116.95\n",
      "2016-12-20 POSITION value:109.810 upnl:-7.140 rpnl:-7.880\n",
      "2016-12-21 TICK WIKI/AAPL open: 116.8 close: 117.06\n",
      "2016-12-21 POSITION value:109.810 upnl:-7.250 rpnl:-7.880\n",
      "2016-12-22 TICK WIKI/AAPL open: 116.35 close: 116.29\n",
      "2016-12-22 POSITION value:109.810 upnl:-6.480 rpnl:-7.880\n",
      "2016-12-23 TICK WIKI/AAPL open: 115.59 close: 116.52\n",
      "2016-12-23 POSITION value:109.810 upnl:-6.710 rpnl:-7.880\n",
      "2016-12-27 TICK WIKI/AAPL open: 116.52 close: 117.26\n",
      "2016-12-27 POSITION value:109.810 upnl:-7.450 rpnl:-7.880\n",
      "2016-12-28 TICK WIKI/AAPL open: 117.52 close: 116.76\n",
      "2016-12-28 POSITION value:109.810 upnl:-6.950 rpnl:-7.880\n",
      "2016-12-29 TICK WIKI/AAPL open: 116.45 close: 116.73\n",
      "2016-12-29 POSITION value:109.810 upnl:-6.920 rpnl:-7.880\n",
      "2016-12-30 TICK WIKI/AAPL open: 116.65 close: 115.82\n",
      "2016-12-30 POSITION value:109.810 upnl:-6.010 rpnl:-7.880\n",
      "2017-01-03 TICK WIKI/AAPL open: 115.8 close: 116.15\n",
      "2017-01-03 POSITION value:109.810 upnl:-6.340 rpnl:-7.880\n",
      "2017-01-04 TICK WIKI/AAPL open: 115.85 close: 116.02\n",
      "2017-01-04 POSITION value:109.810 upnl:-6.210 rpnl:-7.880\n",
      "2017-01-05 TICK WIKI/AAPL open: 115.92 close: 116.61\n",
      "2017-01-05 POSITION value:109.810 upnl:-6.800 rpnl:-7.880\n",
      "2017-01-06 TICK WIKI/AAPL open: 116.78 close: 117.91\n",
      "2017-01-06 POSITION value:109.810 upnl:-8.100 rpnl:-7.880\n",
      "2017-01-09 TICK WIKI/AAPL open: 117.95 close: 118.99\n",
      "2017-01-09 POSITION value:109.810 upnl:-9.180 rpnl:-7.880\n",
      "2017-01-10 TICK WIKI/AAPL open: 118.77 close: 119.11\n",
      "2017-01-10 POSITION value:109.810 upnl:-9.300 rpnl:-7.880\n",
      "2017-01-11 TICK WIKI/AAPL open: 118.74 close: 119.75\n",
      "2017-01-11 POSITION value:109.810 upnl:-9.940 rpnl:-7.880\n",
      "2017-01-12 TICK WIKI/AAPL open: 118.895 close: 119.25\n",
      "2017-01-12 POSITION value:109.810 upnl:-9.440 rpnl:-7.880\n",
      "2017-01-13 TICK WIKI/AAPL open: 119.11 close: 119.04\n",
      "2017-01-13 POSITION value:109.810 upnl:-9.230 rpnl:-7.880\n",
      "2017-01-17 TICK WIKI/AAPL open: 118.34 close: 120.0\n",
      "2017-01-17 POSITION value:109.810 upnl:-10.190 rpnl:-7.880\n",
      "2017-01-18 TICK WIKI/AAPL open: 120.0 close: 119.99\n",
      "2017-01-18 POSITION value:109.810 upnl:-10.180 rpnl:-7.880\n",
      "2017-01-19 TICK WIKI/AAPL open: 119.4 close: 119.78\n",
      "2017-01-19 POSITION value:109.810 upnl:-9.970 rpnl:-7.880\n",
      "2017-01-20 TICK WIKI/AAPL open: 120.45 close: 120.0\n",
      "2017-01-20 POSITION value:109.810 upnl:-10.190 rpnl:-7.880\n",
      "2017-01-23 TICK WIKI/AAPL open: 120.0 close: 120.08\n",
      "2017-01-23 POSITION value:109.810 upnl:-10.270 rpnl:-7.880\n",
      "2017-01-24 TICK WIKI/AAPL open: 119.55 close: 119.97\n",
      "2017-01-24 POSITION value:109.810 upnl:-10.160 rpnl:-7.880\n",
      "2017-01-25 TICK WIKI/AAPL open: 120.42 close: 121.88\n",
      "2017-01-25 POSITION value:109.810 upnl:-12.070 rpnl:-7.880\n",
      "2017-01-26 TICK WIKI/AAPL open: 121.67 close: 121.94\n",
      "2017-01-26 POSITION value:109.810 upnl:-12.130 rpnl:-7.880\n",
      "2017-01-27 TICK WIKI/AAPL open: 122.14 close: 121.95\n",
      "2017-01-27 POSITION value:109.810 upnl:-12.140 rpnl:-7.880\n",
      "2017-01-30 TICK WIKI/AAPL open: 120.93 close: 121.63\n",
      "2017-01-30 POSITION value:109.810 upnl:-11.820 rpnl:-7.880\n",
      "2017-01-31 TICK WIKI/AAPL open: 121.15 close: 121.35\n",
      "2017-01-31 POSITION value:109.810 upnl:-11.540 rpnl:-7.880\n",
      "2017-02-01 TICK WIKI/AAPL open: 127.03 close: 128.75\n",
      "2017-02-01 POSITION value:109.810 upnl:-18.940 rpnl:-7.880\n",
      "2017-02-02 TICK WIKI/AAPL open: 127.975 close: 128.53\n",
      "2017-02-02 POSITION value:109.810 upnl:-18.720 rpnl:-7.880\n",
      "2017-02-03 TICK WIKI/AAPL open: 128.31 close: 129.08\n",
      "2017-02-03 POSITION value:109.810 upnl:-19.270 rpnl:-7.880\n",
      "2017-02-06 TICK WIKI/AAPL open: 129.13 close: 130.29\n",
      "2017-02-06 POSITION value:109.810 upnl:-20.480 rpnl:-7.880\n",
      "2017-02-07 TICK WIKI/AAPL open: 130.54 close: 131.53\n",
      "2017-02-07 POSITION value:109.810 upnl:-21.720 rpnl:-7.880\n",
      "2017-02-08 TICK WIKI/AAPL open: 131.35 close: 132.04\n",
      "2017-02-08 POSITION value:109.810 upnl:-22.230 rpnl:-7.880\n",
      "2017-02-09 TICK WIKI/AAPL open: 131.65 close: 132.42\n",
      "2017-02-09 POSITION value:109.810 upnl:-22.610 rpnl:-7.880\n",
      "2017-02-10 TICK WIKI/AAPL open: 132.46 close: 132.12\n",
      "2017-02-10 POSITION value:109.810 upnl:-22.310 rpnl:-7.880\n",
      "2017-02-13 TICK WIKI/AAPL open: 133.08 close: 133.29\n",
      "2017-02-13 POSITION value:109.810 upnl:-23.480 rpnl:-7.880\n",
      "2017-02-14 TICK WIKI/AAPL open: 133.47 close: 135.02\n",
      "2017-02-14 POSITION value:109.810 upnl:-25.210 rpnl:-7.880\n",
      "2017-02-15 TICK WIKI/AAPL open: 135.52 close: 135.51\n",
      "2017-02-15 POSITION value:109.810 upnl:-25.700 rpnl:-7.880\n",
      "2017-02-16 TICK WIKI/AAPL open: 135.67 close: 135.345\n",
      "2017-02-16 POSITION value:109.810 upnl:-25.535 rpnl:-7.880\n",
      "2017-02-17 TICK WIKI/AAPL open: 135.1 close: 135.72\n",
      "2017-02-17 POSITION value:109.810 upnl:-25.910 rpnl:-7.880\n",
      "2017-02-21 TICK WIKI/AAPL open: 136.23 close: 136.7\n",
      "2017-02-21 POSITION value:109.810 upnl:-26.890 rpnl:-7.880\n",
      "2017-02-22 TICK WIKI/AAPL open: 136.43 close: 137.11\n",
      "2017-02-22 POSITION value:109.810 upnl:-27.300 rpnl:-7.880\n",
      "2017-02-23 TICK WIKI/AAPL open: 137.38 close: 136.53\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2017-02-23 POSITION value:109.810 upnl:-26.720 rpnl:-7.880\n",
      "2017-02-24 TICK WIKI/AAPL open: 135.91 close: 136.66\n",
      "2017-02-24 POSITION value:109.810 upnl:-26.850 rpnl:-7.880\n",
      "2017-02-27 TICK WIKI/AAPL open: 137.14 close: 136.93\n",
      "2017-02-27 POSITION value:109.810 upnl:-27.120 rpnl:-7.880\n",
      "2017-02-28 TICK WIKI/AAPL open: 137.08 close: 136.99\n",
      "2017-02-28 POSITION value:109.810 upnl:-27.180 rpnl:-7.880\n",
      "2017-03-01 TICK WIKI/AAPL open: 137.89 close: 139.79\n",
      "2017-03-01 POSITION value:109.810 upnl:-29.980 rpnl:-7.880\n",
      "2017-03-02 TICK WIKI/AAPL open: 140.0 close: 138.96\n",
      "2017-03-02 POSITION value:109.810 upnl:-29.150 rpnl:-7.880\n",
      "2017-03-03 TICK WIKI/AAPL open: 138.78 close: 139.78\n",
      "2017-03-03 POSITION value:109.810 upnl:-29.970 rpnl:-7.880\n",
      "2017-03-06 TICK WIKI/AAPL open: 139.365 close: 139.34\n",
      "2017-03-06 POSITION value:109.810 upnl:-29.530 rpnl:-7.880\n",
      "2017-03-07 TICK WIKI/AAPL open: 139.06 close: 139.52\n",
      "2017-03-07 POSITION value:109.810 upnl:-29.710 rpnl:-7.880\n",
      "2017-03-08 TICK WIKI/AAPL open: 138.95 close: 139.0\n",
      "2017-03-08 POSITION value:109.810 upnl:-29.190 rpnl:-7.880\n",
      "2017-03-09 TICK WIKI/AAPL open: 138.74 close: 138.68\n",
      "2017-03-09 POSITION value:109.810 upnl:-28.870 rpnl:-7.880\n",
      "2017-03-10 TICK WIKI/AAPL open: 139.25 close: 139.14\n",
      "2017-03-10 POSITION value:109.810 upnl:-29.330 rpnl:-7.880\n",
      "2017-03-13 TICK WIKI/AAPL open: 138.85 close: 139.2\n",
      "2017-03-13 POSITION value:109.810 upnl:-29.390 rpnl:-7.880\n",
      "2017-03-14 TICK WIKI/AAPL open: 139.3 close: 138.99\n",
      "2017-03-14 POSITION value:109.810 upnl:-29.180 rpnl:-7.880\n",
      "2017-03-15 TICK WIKI/AAPL open: 139.41 close: 140.46\n",
      "2017-03-15 POSITION value:109.810 upnl:-30.650 rpnl:-7.880\n",
      "2017-03-16 TICK WIKI/AAPL open: 140.72 close: 140.69\n",
      "2017-03-16 POSITION value:109.810 upnl:-30.880 rpnl:-7.880\n",
      "2017-03-17 TICK WIKI/AAPL open: 141.0 close: 139.99\n",
      "2017-03-17 POSITION value:109.810 upnl:-30.180 rpnl:-7.880\n",
      "2017-03-20 TICK WIKI/AAPL open: 140.4 close: 141.46\n",
      "2017-03-20 POSITION value:109.810 upnl:-31.650 rpnl:-7.880\n",
      "2017-03-21 TICK WIKI/AAPL open: 142.11 close: 139.84\n",
      "2017-03-21 POSITION value:109.810 upnl:-30.030 rpnl:-7.880\n",
      "2017-03-22 TICK WIKI/AAPL open: 139.845 close: 141.42\n",
      "2017-03-22 POSITION value:109.810 upnl:-31.610 rpnl:-7.880\n",
      "2017-03-23 TICK WIKI/AAPL open: 141.26 close: 140.92\n",
      "2017-03-23 POSITION value:109.810 upnl:-31.110 rpnl:-7.880\n",
      "2017-03-24 TICK WIKI/AAPL open: 141.5 close: 140.64\n",
      "2017-03-24 POSITION value:109.810 upnl:-30.830 rpnl:-7.880\n",
      "2017-03-27 TICK WIKI/AAPL open: 139.39 close: 140.88\n",
      "2017-03-27 POSITION value:109.810 upnl:-31.070 rpnl:-7.880\n",
      "2017-03-28 TICK WIKI/AAPL open: 140.91 close: 143.8\n",
      "2017-03-28 POSITION value:109.810 upnl:-33.990 rpnl:-7.880\n",
      "2017-03-29 TICK WIKI/AAPL open: 143.68 close: 144.12\n",
      "2017-03-29 POSITION value:109.810 upnl:-34.310 rpnl:-7.880\n",
      "2017-03-30 TICK WIKI/AAPL open: 144.19 close: 143.93\n",
      "2017-03-30 POSITION value:109.810 upnl:-34.120 rpnl:-7.880\n",
      "2017-03-31 TICK WIKI/AAPL open: 143.72 close: 143.66\n",
      "2017-03-31 POSITION value:109.810 upnl:-33.850 rpnl:-7.880\n",
      "2017-04-03 TICK WIKI/AAPL open: 143.71 close: 143.7\n",
      "2017-04-03 POSITION value:109.810 upnl:-33.890 rpnl:-7.880\n",
      "2017-04-04 TICK WIKI/AAPL open: 143.25 close: 144.77\n",
      "2017-04-04 POSITION value:109.810 upnl:-34.960 rpnl:-7.880\n",
      "2017-04-05 TICK WIKI/AAPL open: 144.22 close: 144.02\n",
      "2017-04-05 POSITION value:109.810 upnl:-34.210 rpnl:-7.880\n",
      "2017-04-06 TICK WIKI/AAPL open: 144.29 close: 143.66\n",
      "2017-04-06 POSITION value:109.810 upnl:-33.850 rpnl:-7.880\n",
      "2017-04-07 TICK WIKI/AAPL open: 143.73 close: 143.34\n",
      "2017-04-07 POSITION value:109.810 upnl:-33.530 rpnl:-7.880\n",
      "2017-04-10 TICK WIKI/AAPL open: 143.6 close: 143.17\n",
      "2017-04-10 POSITION value:109.810 upnl:-33.360 rpnl:-7.880\n",
      "2017-04-11 TICK WIKI/AAPL open: 142.94 close: 141.63\n",
      "2017-04-11 POSITION value:109.810 upnl:-31.820 rpnl:-7.880\n",
      "2017-04-12 TICK WIKI/AAPL open: 141.6 close: 141.8\n",
      "2017-04-12 POSITION value:109.810 upnl:-31.990 rpnl:-7.880\n",
      "2017-04-13 TICK WIKI/AAPL open: 141.91 close: 141.05\n",
      "2017-04-13 POSITION value:109.810 upnl:-31.240 rpnl:-7.880\n",
      "2017-04-17 TICK WIKI/AAPL open: 141.48 close: 141.83\n",
      "2017-04-17 POSITION value:109.810 upnl:-32.020 rpnl:-7.880\n",
      "2017-04-18 TICK WIKI/AAPL open: 141.41 close: 141.2\n",
      "2017-04-18 POSITION value:109.810 upnl:-31.390 rpnl:-7.880\n",
      "2017-04-19 TICK WIKI/AAPL open: 141.88 close: 140.68\n",
      "2017-04-19 POSITION value:109.810 upnl:-30.870 rpnl:-7.880\n",
      "2017-04-20 TICK WIKI/AAPL open: 141.22 close: 142.44\n",
      "2017-04-20 POSITION value:109.810 upnl:-32.630 rpnl:-7.880\n",
      "2017-04-21 TICK WIKI/AAPL open: 142.44 close: 142.27\n",
      "2017-04-21 POSITION value:109.810 upnl:-32.460 rpnl:-7.880\n",
      "2017-04-24 TICK WIKI/AAPL open: 143.5 close: 143.64\n",
      "2017-04-24 POSITION value:109.810 upnl:-33.830 rpnl:-7.880\n",
      "2017-04-25 TICK WIKI/AAPL open: 143.91 close: 144.54\n",
      "2017-04-25 POSITION value:109.810 upnl:-34.730 rpnl:-7.880\n",
      "2017-04-26 TICK WIKI/AAPL open: 144.47 close: 143.6508\n",
      "2017-04-26 POSITION value:109.810 upnl:-33.841 rpnl:-7.880\n",
      "2017-04-27 TICK WIKI/AAPL open: 143.9225 close: 143.79\n",
      "2017-04-27 POSITION value:109.810 upnl:-33.980 rpnl:-7.880\n",
      "2017-04-28 TICK WIKI/AAPL open: 144.09 close: 143.65\n",
      "2017-04-28 POSITION value:109.810 upnl:-33.840 rpnl:-7.880\n",
      "2017-05-01 TICK WIKI/AAPL open: 145.1 close: 146.6\n",
      "2017-05-01 POSITION value:109.810 upnl:-36.790 rpnl:-7.880\n",
      "2017-05-02 TICK WIKI/AAPL open: 147.54 close: 147.51\n",
      "2017-05-02 POSITION value:109.810 upnl:-37.700 rpnl:-7.880\n",
      "2017-05-03 TICK WIKI/AAPL open: 145.59 close: 147.06\n",
      "2017-05-03 POSITION value:109.810 upnl:-37.250 rpnl:-7.880\n",
      "2017-05-04 TICK WIKI/AAPL open: 146.52 close: 146.53\n",
      "2017-05-04 POSITION value:109.810 upnl:-36.720 rpnl:-7.880\n",
      "2017-05-05 TICK WIKI/AAPL open: 146.76 close: 148.96\n",
      "2017-05-05 POSITION value:109.810 upnl:-39.150 rpnl:-7.880\n",
      "2017-05-08 TICK WIKI/AAPL open: 149.03 close: 153.0\n",
      "2017-05-08 POSITION value:109.810 upnl:-43.190 rpnl:-7.880\n",
      "2017-05-09 TICK WIKI/AAPL open: 153.87 close: 153.96\n",
      "2017-05-09 POSITION value:109.810 upnl:-44.150 rpnl:-7.880\n",
      "2017-05-10 TICK WIKI/AAPL open: 153.63 close: 153.26\n",
      "2017-05-10 POSITION value:109.810 upnl:-43.450 rpnl:-7.880\n",
      "2017-05-11 TICK WIKI/AAPL open: 152.45 close: 153.95\n",
      "2017-05-11 POSITION value:109.810 upnl:-44.140 rpnl:-7.880\n",
      "2017-05-12 TICK WIKI/AAPL open: 154.7 close: 156.1\n",
      "2017-05-12 POSITION value:109.810 upnl:-46.290 rpnl:-7.880\n",
      "2017-05-15 TICK WIKI/AAPL open: 156.01 close: 155.7\n",
      "2017-05-15 POSITION value:109.810 upnl:-45.890 rpnl:-7.880\n",
      "2017-05-16 TICK WIKI/AAPL open: 155.94 close: 155.47\n",
      "2017-05-16 POSITION value:109.810 upnl:-45.660 rpnl:-7.880\n",
      "2017-05-17 TICK WIKI/AAPL open: 153.6 close: 150.25\n",
      "2017-05-17 BUY signal\n",
      "2017-05-17 ORDER BUY WIKI/AAPL 1\n",
      "2017-05-17 POSITION value:109.810 upnl:-40.440 rpnl:-7.880\n",
      "2017-05-18 TICK WIKI/AAPL open: 151.27 close: 152.54\n",
      "2017-05-18 FILLED BUY 1 WIKI/AAPL at 151.27\n",
      "2017-05-18 POSITION value:0.000 upnl:0.000 rpnl:-41.460\n",
      "2017-05-19 TICK WIKI/AAPL open: 153.38 close: 152.96\n",
      "2017-05-19 POSITION value:0.000 upnl:0.000 rpnl:-41.460\n",
      "2017-05-22 TICK WIKI/AAPL open: 154.0 close: 153.99\n",
      "2017-05-22 POSITION value:0.000 upnl:0.000 rpnl:-41.460\n",
      "2017-05-23 TICK WIKI/AAPL open: 154.9 close: 153.8\n",
      "2017-05-23 POSITION value:0.000 upnl:0.000 rpnl:-41.460\n",
      "2017-05-24 TICK WIKI/AAPL open: 153.84 close: 153.34\n",
      "2017-05-24 POSITION value:0.000 upnl:0.000 rpnl:-41.460\n",
      "2017-05-25 TICK WIKI/AAPL open: 153.73 close: 153.87\n",
      "2017-05-25 POSITION value:0.000 upnl:0.000 rpnl:-41.460\n",
      "2017-05-26 TICK WIKI/AAPL open: 154.0 close: 153.61\n",
      "2017-05-26 POSITION value:0.000 upnl:0.000 rpnl:-41.460\n",
      "2017-05-30 TICK WIKI/AAPL open: 153.42 close: 153.67\n",
      "2017-05-30 POSITION value:0.000 upnl:0.000 rpnl:-41.460\n",
      "2017-05-31 TICK WIKI/AAPL open: 153.97 close: 152.76\n",
      "2017-05-31 POSITION value:0.000 upnl:0.000 rpnl:-41.460\n",
      "2017-06-01 TICK WIKI/AAPL open: 153.17 close: 153.18\n",
      "2017-06-01 POSITION value:0.000 upnl:0.000 rpnl:-41.460\n",
      "2017-06-02 TICK WIKI/AAPL open: 153.58 close: 155.45\n",
      "2017-06-02 POSITION value:0.000 upnl:0.000 rpnl:-41.460\n",
      "2017-06-05 TICK WIKI/AAPL open: 154.34 close: 153.93\n",
      "2017-06-05 POSITION value:0.000 upnl:0.000 rpnl:-41.460\n",
      "2017-06-06 TICK WIKI/AAPL open: 153.9 close: 154.45\n",
      "2017-06-06 POSITION value:0.000 upnl:0.000 rpnl:-41.460\n",
      "2017-06-07 TICK WIKI/AAPL open: 155.02 close: 155.37\n",
      "2017-06-07 POSITION value:0.000 upnl:0.000 rpnl:-41.460\n",
      "2017-06-08 TICK WIKI/AAPL open: 155.25 close: 154.99\n",
      "2017-06-08 POSITION value:0.000 upnl:0.000 rpnl:-41.460\n",
      "2017-06-09 TICK WIKI/AAPL open: 155.19 close: 148.98\n",
      "2017-06-09 BUY signal\n",
      "2017-06-09 ORDER BUY WIKI/AAPL 1\n",
      "2017-06-09 POSITION value:0.000 upnl:0.000 rpnl:-41.460\n",
      "2017-06-12 TICK WIKI/AAPL open: 145.74 close: 145.32\n",
      "2017-06-12 FILLED BUY 1 WIKI/AAPL at 145.74\n",
      "2017-06-12 POSITION value:-145.740 upnl:-0.420 rpnl:-41.460\n",
      "2017-06-13 TICK WIKI/AAPL open: 147.16 close: 146.59\n",
      "2017-06-13 POSITION value:-145.740 upnl:0.850 rpnl:-41.460\n",
      "2017-06-14 TICK WIKI/AAPL open: 147.5 close: 145.16\n",
      "2017-06-14 POSITION value:-145.740 upnl:-0.580 rpnl:-41.460\n",
      "2017-06-15 TICK WIKI/AAPL open: 143.32 close: 144.29\n",
      "2017-06-15 POSITION value:-145.740 upnl:-1.450 rpnl:-41.460\n",
      "2017-06-16 TICK WIKI/AAPL open: 143.78 close: 142.27\n",
      "2017-06-16 POSITION value:-145.740 upnl:-3.470 rpnl:-41.460\n",
      "2017-06-19 TICK WIKI/AAPL open: 143.66 close: 146.34\n",
      "2017-06-19 SELL signal\n",
      "2017-06-19 ORDER SELL WIKI/AAPL 1\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2017-06-19 POSITION value:-145.740 upnl:0.600 rpnl:-41.460\n",
      "2017-06-20 TICK WIKI/AAPL open: 146.87 close: 145.01\n",
      "2017-06-20 FILLED SELL 1 WIKI/AAPL at 146.87\n",
      "2017-06-20 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-21 TICK WIKI/AAPL open: 145.52 close: 145.87\n",
      "2017-06-21 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-22 TICK WIKI/AAPL open: 145.77 close: 145.63\n",
      "2017-06-22 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-23 TICK WIKI/AAPL open: 145.13 close: 146.35\n",
      "2017-06-23 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-26 TICK WIKI/AAPL open: 147.17 close: 145.82\n",
      "2017-06-26 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-27 TICK WIKI/AAPL open: 145.01 close: 143.74\n",
      "2017-06-27 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-28 TICK WIKI/AAPL open: 144.49 close: 145.83\n",
      "2017-06-28 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-29 TICK WIKI/AAPL open: 144.71 close: 143.68\n",
      "2017-06-29 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-06-30 TICK WIKI/AAPL open: 144.45 close: 144.02\n",
      "2017-06-30 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-03 TICK WIKI/AAPL open: 144.88 close: 143.5\n",
      "2017-07-03 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-05 TICK WIKI/AAPL open: 143.69 close: 144.09\n",
      "2017-07-05 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-06 TICK WIKI/AAPL open: 143.02 close: 142.73\n",
      "2017-07-06 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-07 TICK WIKI/AAPL open: 142.9 close: 144.18\n",
      "2017-07-07 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-10 TICK WIKI/AAPL open: 144.11 close: 145.06\n",
      "2017-07-10 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-11 TICK WIKI/AAPL open: 144.73 close: 145.53\n",
      "2017-07-11 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-12 TICK WIKI/AAPL open: 145.87 close: 145.74\n",
      "2017-07-12 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-13 TICK WIKI/AAPL open: 145.5 close: 147.77\n",
      "2017-07-13 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-14 TICK WIKI/AAPL open: 147.97 close: 149.04\n",
      "2017-07-14 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-17 TICK WIKI/AAPL open: 148.82 close: 149.56\n",
      "2017-07-17 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-18 TICK WIKI/AAPL open: 149.2 close: 150.08\n",
      "2017-07-18 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-19 TICK WIKI/AAPL open: 150.48 close: 151.02\n",
      "2017-07-19 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-20 TICK WIKI/AAPL open: 151.5 close: 150.34\n",
      "2017-07-20 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-21 TICK WIKI/AAPL open: 149.99 close: 150.27\n",
      "2017-07-21 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-24 TICK WIKI/AAPL open: 150.58 close: 152.09\n",
      "2017-07-24 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-25 TICK WIKI/AAPL open: 151.8 close: 152.74\n",
      "2017-07-25 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-26 TICK WIKI/AAPL open: 153.35 close: 153.46\n",
      "2017-07-26 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-27 TICK WIKI/AAPL open: 153.75 close: 150.56\n",
      "2017-07-27 BUY signal\n",
      "2017-07-27 ORDER BUY WIKI/AAPL 1\n",
      "2017-07-27 POSITION value:0.000 upnl:0.000 rpnl:1.130\n",
      "2017-07-28 TICK WIKI/AAPL open: 149.89 close: 149.5\n",
      "2017-07-28 FILLED BUY 1 WIKI/AAPL at 149.89\n",
      "2017-07-28 POSITION value:-149.890 upnl:-0.390 rpnl:1.130\n",
      "2017-07-31 TICK WIKI/AAPL open: 149.9 close: 148.85\n",
      "2017-07-31 POSITION value:-149.890 upnl:-1.040 rpnl:1.130\n",
      "2017-08-01 TICK WIKI/AAPL open: 149.1 close: 150.05\n",
      "2017-08-01 POSITION value:-149.890 upnl:0.160 rpnl:1.130\n",
      "2017-08-02 TICK WIKI/AAPL open: 159.28 close: 157.14\n",
      "2017-08-02 SELL signal\n",
      "2017-08-02 ORDER SELL WIKI/AAPL 1\n",
      "2017-08-02 POSITION value:-149.890 upnl:7.250 rpnl:1.130\n",
      "2017-08-03 TICK WIKI/AAPL open: 157.05 close: 155.57\n",
      "2017-08-03 FILLED SELL 1 WIKI/AAPL at 157.05\n",
      "2017-08-03 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-04 TICK WIKI/AAPL open: 156.07 close: 156.39\n",
      "2017-08-04 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-08 TICK WIKI/AAPL open: 158.6 close: 160.08\n",
      "2017-08-08 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-09 TICK WIKI/AAPL open: 159.26 close: 161.06\n",
      "2017-08-09 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-10 TICK WIKI/AAPL open: 159.9 close: 155.27\n",
      "2017-08-10 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-11 TICK WIKI/AAPL open: 156.6 close: 157.48\n",
      "2017-08-11 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-14 TICK WIKI/AAPL open: 159.32 close: 159.85\n",
      "2017-08-14 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-15 TICK WIKI/AAPL open: 160.66 close: 161.6\n",
      "2017-08-15 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-16 TICK WIKI/AAPL open: 161.94 close: 160.95\n",
      "2017-08-16 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-17 TICK WIKI/AAPL open: 160.52 close: 157.87\n",
      "2017-08-17 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-18 TICK WIKI/AAPL open: 157.86 close: 157.5\n",
      "2017-08-18 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-21 TICK WIKI/AAPL open: 157.5 close: 157.21\n",
      "2017-08-21 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-22 TICK WIKI/AAPL open: 158.23 close: 159.78\n",
      "2017-08-22 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-23 TICK WIKI/AAPL open: 159.07 close: 159.98\n",
      "2017-08-23 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-24 TICK WIKI/AAPL open: 160.43 close: 159.27\n",
      "2017-08-24 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-25 TICK WIKI/AAPL open: 159.65 close: 159.86\n",
      "2017-08-25 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-28 TICK WIKI/AAPL open: 160.14 close: 161.47\n",
      "2017-08-28 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-29 TICK WIKI/AAPL open: 160.1 close: 162.91\n",
      "2017-08-29 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-30 TICK WIKI/AAPL open: 163.8 close: 163.35\n",
      "2017-08-30 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-08-31 TICK WIKI/AAPL open: 163.64 close: 164.0\n",
      "2017-08-31 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-01 TICK WIKI/AAPL open: 164.8 close: 164.05\n",
      "2017-09-01 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-05 TICK WIKI/AAPL open: 163.75 close: 162.08\n",
      "2017-09-05 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-06 TICK WIKI/AAPL open: 162.71 close: 161.91\n",
      "2017-09-06 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-07 TICK WIKI/AAPL open: 162.09 close: 161.26\n",
      "2017-09-07 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-08 TICK WIKI/AAPL open: 160.86 close: 158.63\n",
      "2017-09-08 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-11 TICK WIKI/AAPL open: 160.5 close: 161.5\n",
      "2017-09-11 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-12 TICK WIKI/AAPL open: 162.61 close: 160.82\n",
      "2017-09-12 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-13 TICK WIKI/AAPL open: 159.87 close: 159.65\n",
      "2017-09-13 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-14 TICK WIKI/AAPL open: 158.99 close: 158.28\n",
      "2017-09-14 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-15 TICK WIKI/AAPL open: 158.47 close: 159.88\n",
      "2017-09-15 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-18 TICK WIKI/AAPL open: 160.11 close: 158.67\n",
      "2017-09-18 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-19 TICK WIKI/AAPL open: 159.51 close: 158.73\n",
      "2017-09-19 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-20 TICK WIKI/AAPL open: 157.9 close: 156.07\n",
      "2017-09-20 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-21 TICK WIKI/AAPL open: 155.8 close: 153.39\n",
      "2017-09-21 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-22 TICK WIKI/AAPL open: 152.02 close: 151.89\n",
      "2017-09-22 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-25 TICK WIKI/AAPL open: 149.99 close: 150.55\n",
      "2017-09-25 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-26 TICK WIKI/AAPL open: 151.78 close: 153.14\n",
      "2017-09-26 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-27 TICK WIKI/AAPL open: 153.8 close: 154.23\n",
      "2017-09-27 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-28 TICK WIKI/AAPL open: 153.89 close: 153.28\n",
      "2017-09-28 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-09-29 TICK WIKI/AAPL open: 153.21 close: 154.12\n",
      "2017-09-29 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-10-02 TICK WIKI/AAPL open: 154.26 close: 153.81\n",
      "2017-10-02 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-10-03 TICK WIKI/AAPL open: 154.01 close: 154.48\n",
      "2017-10-03 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-10-04 TICK WIKI/AAPL open: 153.63 close: 153.4508\n",
      "2017-10-04 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-10-05 TICK WIKI/AAPL open: 154.18 close: 155.39\n",
      "2017-10-05 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-10-06 TICK WIKI/AAPL open: 154.97 close: 155.3\n",
      "2017-10-06 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-10-09 TICK WIKI/AAPL open: 155.81 close: 155.84\n",
      "2017-10-09 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-10-10 TICK WIKI/AAPL open: 156.055 close: 155.9\n",
      "2017-10-10 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-10-11 TICK WIKI/AAPL open: 155.97 close: 156.55\n",
      "2017-10-11 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-10-12 TICK WIKI/AAPL open: 156.35 close: 156.0\n",
      "2017-10-12 POSITION value:0.000 upnl:0.000 rpnl:7.160\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2017-10-13 TICK WIKI/AAPL open: 156.73 close: 156.99\n",
      "2017-10-13 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-10-16 TICK WIKI/AAPL open: 157.9 close: 159.88\n",
      "2017-10-16 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-10-17 TICK WIKI/AAPL open: 159.78 close: 160.47\n",
      "2017-10-17 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-10-18 TICK WIKI/AAPL open: 160.42 close: 159.76\n",
      "2017-10-18 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-10-19 TICK WIKI/AAPL open: 156.75 close: 155.98\n",
      "2017-10-19 BUY signal\n",
      "2017-10-19 ORDER BUY WIKI/AAPL 1\n",
      "2017-10-19 POSITION value:0.000 upnl:0.000 rpnl:7.160\n",
      "2017-10-20 TICK WIKI/AAPL open: 156.61 close: 156.16\n",
      "2017-10-20 FILLED BUY 1 WIKI/AAPL at 156.61\n",
      "2017-10-20 POSITION value:-156.610 upnl:-0.450 rpnl:7.160\n",
      "2017-10-23 TICK WIKI/AAPL open: 156.89 close: 156.17\n",
      "2017-10-23 POSITION value:-156.610 upnl:-0.440 rpnl:7.160\n",
      "2017-10-24 TICK WIKI/AAPL open: 156.29 close: 157.1\n",
      "2017-10-24 POSITION value:-156.610 upnl:0.490 rpnl:7.160\n",
      "2017-10-25 TICK WIKI/AAPL open: 156.91 close: 156.405\n",
      "2017-10-25 POSITION value:-156.610 upnl:-0.205 rpnl:7.160\n",
      "2017-10-26 TICK WIKI/AAPL open: 157.23 close: 157.41\n",
      "2017-10-26 POSITION value:-156.610 upnl:0.800 rpnl:7.160\n",
      "2017-10-27 TICK WIKI/AAPL open: 159.29 close: 163.05\n",
      "2017-10-27 SELL signal\n",
      "2017-10-27 ORDER SELL WIKI/AAPL 1\n",
      "2017-10-27 POSITION value:-156.610 upnl:6.440 rpnl:7.160\n",
      "2017-10-30 TICK WIKI/AAPL open: 163.89 close: 166.72\n",
      "2017-10-30 FILLED SELL 1 WIKI/AAPL at 163.89\n",
      "2017-10-30 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-10-31 TICK WIKI/AAPL open: 167.9 close: 169.04\n",
      "2017-10-31 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-01 TICK WIKI/AAPL open: 169.87 close: 166.89\n",
      "2017-11-01 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-02 TICK WIKI/AAPL open: 167.64 close: 168.11\n",
      "2017-11-02 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-03 TICK WIKI/AAPL open: 174.0 close: 172.5\n",
      "2017-11-03 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-06 TICK WIKI/AAPL open: 172.365 close: 174.25\n",
      "2017-11-06 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-07 TICK WIKI/AAPL open: 173.91 close: 174.81\n",
      "2017-11-07 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-09 TICK WIKI/AAPL open: 175.11 close: 175.88\n",
      "2017-11-09 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-10 TICK WIKI/AAPL open: 175.11 close: 174.67\n",
      "2017-11-10 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-13 TICK WIKI/AAPL open: 173.5 close: 173.97\n",
      "2017-11-13 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-14 TICK WIKI/AAPL open: 173.04 close: 171.34\n",
      "2017-11-14 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-15 TICK WIKI/AAPL open: 169.97 close: 169.08\n",
      "2017-11-15 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-16 TICK WIKI/AAPL open: 171.18 close: 171.1\n",
      "2017-11-16 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-17 TICK WIKI/AAPL open: 171.04 close: 170.15\n",
      "2017-11-17 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-20 TICK WIKI/AAPL open: 170.29 close: 169.98\n",
      "2017-11-20 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-21 TICK WIKI/AAPL open: 170.78 close: 173.14\n",
      "2017-11-21 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-22 TICK WIKI/AAPL open: 173.36 close: 174.96\n",
      "2017-11-22 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-24 TICK WIKI/AAPL open: 175.1 close: 174.97\n",
      "2017-11-24 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-27 TICK WIKI/AAPL open: 175.05 close: 174.09\n",
      "2017-11-27 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-28 TICK WIKI/AAPL open: 174.3 close: 173.07\n",
      "2017-11-28 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-29 TICK WIKI/AAPL open: 172.63 close: 169.48\n",
      "2017-11-29 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-11-30 TICK WIKI/AAPL open: 170.43 close: 171.85\n",
      "2017-11-30 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-01 TICK WIKI/AAPL open: 169.95 close: 171.05\n",
      "2017-12-01 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-04 TICK WIKI/AAPL open: 172.48 close: 169.8\n",
      "2017-12-04 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-05 TICK WIKI/AAPL open: 169.06 close: 169.64\n",
      "2017-12-05 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-06 TICK WIKI/AAPL open: 167.5 close: 169.01\n",
      "2017-12-06 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-07 TICK WIKI/AAPL open: 169.03 close: 169.452\n",
      "2017-12-07 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-08 TICK WIKI/AAPL open: 170.49 close: 169.37\n",
      "2017-12-08 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-11 TICK WIKI/AAPL open: 169.2 close: 172.67\n",
      "2017-12-11 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-12 TICK WIKI/AAPL open: 172.15 close: 171.7\n",
      "2017-12-12 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-13 TICK WIKI/AAPL open: 172.5 close: 172.27\n",
      "2017-12-13 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-14 TICK WIKI/AAPL open: 172.4 close: 172.22\n",
      "2017-12-14 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-15 TICK WIKI/AAPL open: 173.63 close: 173.87\n",
      "2017-12-15 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-18 TICK WIKI/AAPL open: 174.88 close: 176.42\n",
      "2017-12-18 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-19 TICK WIKI/AAPL open: 175.03 close: 174.54\n",
      "2017-12-19 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-20 TICK WIKI/AAPL open: 174.87 close: 174.35\n",
      "2017-12-20 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-21 TICK WIKI/AAPL open: 174.17 close: 175.01\n",
      "2017-12-21 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-22 TICK WIKI/AAPL open: 174.68 close: 175.01\n",
      "2017-12-22 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-26 TICK WIKI/AAPL open: 170.8 close: 170.57\n",
      "2017-12-26 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-27 TICK WIKI/AAPL open: 170.1 close: 170.6\n",
      "2017-12-27 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-28 TICK WIKI/AAPL open: 171.0 close: 171.08\n",
      "2017-12-28 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "2017-12-29 TICK WIKI/AAPL open: 170.52 close: 169.23\n",
      "2017-12-29 POSITION value:0.000 upnl:0.000 rpnl:7.280\n",
      "Backtest completed.\n",
      "Backtest started...\n",
      "Processing total_ticks: 753\n",
      "2015-01-02 TICK WIKI/AAPL open: 111.39 close: 109.33\n",
      "2015-01-05 TICK WIKI/AAPL open: 108.29 close: 106.25\n",
      "2015-01-06 TICK WIKI/AAPL open: 106.54 close: 106.26\n",
      "2015-01-07 TICK WIKI/AAPL open: 107.2 close: 107.75\n",
      "2015-01-08 TICK WIKI/AAPL open: 109.23 close: 111.89\n",
      "2015-01-09 TICK WIKI/AAPL open: 112.67 close: 112.01\n",
      "2015-01-12 TICK WIKI/AAPL open: 112.6 close: 109.25\n",
      "2015-01-13 TICK WIKI/AAPL open: 111.43 close: 110.22\n",
      "2015-01-14 TICK WIKI/AAPL open: 109.04 close: 109.8\n",
      "2015-01-15 TICK WIKI/AAPL open: 110.0 close: 106.82\n",
      "2015-01-16 TICK WIKI/AAPL open: 107.03 close: 105.99\n",
      "2015-01-20 TICK WIKI/AAPL open: 107.84 close: 108.72\n",
      "2015-01-21 TICK WIKI/AAPL open: 108.95 close: 109.55\n",
      "2015-01-22 TICK WIKI/AAPL open: 110.26 close: 112.4\n",
      "2015-01-23 TICK WIKI/AAPL open: 112.3 close: 112.98\n",
      "2015-01-26 TICK WIKI/AAPL open: 113.74 close: 113.1\n",
      "2015-01-27 TICK WIKI/AAPL open: 112.42 close: 109.14\n",
      "2015-01-28 TICK WIKI/AAPL open: 117.625 close: 115.31\n",
      "2015-01-29 TICK WIKI/AAPL open: 116.32 close: 118.9\n",
      "2015-01-30 TICK WIKI/AAPL open: 118.4 close: 117.16\n",
      "2015-02-02 TICK WIKI/AAPL open: 118.05 close: 118.63\n",
      "2015-02-03 TICK WIKI/AAPL open: 118.5 close: 118.65\n",
      "2015-02-04 TICK WIKI/AAPL open: 118.5 close: 119.56\n",
      "2015-02-05 TICK WIKI/AAPL open: 120.02 close: 119.94\n",
      "2015-02-06 TICK WIKI/AAPL open: 120.02 close: 118.93\n",
      "2015-02-09 TICK WIKI/AAPL open: 118.55 close: 119.72\n",
      "2015-02-10 TICK WIKI/AAPL open: 120.17 close: 122.02\n",
      "2015-02-11 TICK WIKI/AAPL open: 122.77 close: 124.88\n",
      "2015-02-12 TICK WIKI/AAPL open: 126.06 close: 126.46\n",
      "2015-02-13 TICK WIKI/AAPL open: 127.28 close: 127.08\n",
      "2015-02-17 TICK WIKI/AAPL open: 127.49 close: 127.83\n",
      "2015-02-18 TICK WIKI/AAPL open: 127.625 close: 128.715\n",
      "2015-02-19 TICK WIKI/AAPL open: 128.48 close: 128.45\n",
      "2015-02-20 TICK WIKI/AAPL open: 128.62 close: 129.495\n",
      "2015-02-23 TICK WIKI/AAPL open: 130.02 close: 133.0\n",
      "2015-02-24 TICK WIKI/AAPL open: 132.94 close: 132.17\n",
      "2015-02-25 TICK WIKI/AAPL open: 131.56 close: 128.79\n",
      "2015-02-25 BUY signal\n",
      "2015-02-25 ORDER BUY WIKI/AAPL 1\n",
      "2015-02-26 TICK WIKI/AAPL open: 128.785 close: 130.415\n",
      "2015-02-26 FILLED BUY 1 WIKI/AAPL at 128.785\n",
      "2015-02-26 POSITION value:-128.785 upnl:1.630 rpnl:0.000\n",
      "2015-02-27 TICK WIKI/AAPL open: 130.0 close: 128.46\n",
      "2015-02-27 POSITION value:-128.785 upnl:-0.325 rpnl:0.000\n",
      "2015-03-02 TICK WIKI/AAPL open: 129.25 close: 129.09\n",
      "2015-03-02 POSITION value:-128.785 upnl:0.305 rpnl:0.000\n",
      "2015-03-03 TICK WIKI/AAPL open: 128.96 close: 129.36\n",
      "2015-03-03 POSITION value:-128.785 upnl:0.575 rpnl:0.000\n",
      "2015-03-04 TICK WIKI/AAPL open: 129.1 close: 128.54\n",
      "2015-03-04 POSITION value:-128.785 upnl:-0.245 rpnl:0.000\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2015-03-05 TICK WIKI/AAPL open: 128.58 close: 126.41\n",
      "2015-03-05 POSITION value:-128.785 upnl:-2.375 rpnl:0.000\n",
      "2015-03-06 TICK WIKI/AAPL open: 128.4 close: 126.6\n",
      "2015-03-06 POSITION value:-128.785 upnl:-2.185 rpnl:0.000\n",
      "2015-03-09 TICK WIKI/AAPL open: 127.96 close: 127.14\n",
      "2015-03-09 POSITION value:-128.785 upnl:-1.645 rpnl:0.000\n",
      "2015-03-10 TICK WIKI/AAPL open: 126.41 close: 124.51\n",
      "2015-03-10 POSITION value:-128.785 upnl:-4.275 rpnl:0.000\n",
      "2015-03-11 TICK WIKI/AAPL open: 124.75 close: 122.24\n",
      "2015-03-11 POSITION value:-128.785 upnl:-6.545 rpnl:0.000\n",
      "2015-03-12 TICK WIKI/AAPL open: 122.31 close: 124.45\n",
      "2015-03-12 POSITION value:-128.785 upnl:-4.335 rpnl:0.000\n",
      "2015-03-13 TICK WIKI/AAPL open: 124.4 close: 123.59\n",
      "2015-03-13 POSITION value:-128.785 upnl:-5.195 rpnl:0.000\n",
      "2015-03-16 TICK WIKI/AAPL open: 123.88 close: 124.95\n",
      "2015-03-16 POSITION value:-128.785 upnl:-3.835 rpnl:0.000\n",
      "2015-03-17 TICK WIKI/AAPL open: 125.9 close: 127.04\n",
      "2015-03-17 POSITION value:-128.785 upnl:-1.745 rpnl:0.000\n",
      "2015-03-18 TICK WIKI/AAPL open: 127.0 close: 128.47\n",
      "2015-03-18 POSITION value:-128.785 upnl:-0.315 rpnl:0.000\n",
      "2015-03-19 TICK WIKI/AAPL open: 128.75 close: 127.495\n",
      "2015-03-19 POSITION value:-128.785 upnl:-1.290 rpnl:0.000\n",
      "2015-03-20 TICK WIKI/AAPL open: 128.25 close: 125.9\n",
      "2015-03-20 POSITION value:-128.785 upnl:-2.885 rpnl:0.000\n",
      "2015-03-23 TICK WIKI/AAPL open: 127.12 close: 127.21\n",
      "2015-03-23 POSITION value:-128.785 upnl:-1.575 rpnl:0.000\n",
      "2015-03-24 TICK WIKI/AAPL open: 127.23 close: 126.69\n",
      "2015-03-24 POSITION value:-128.785 upnl:-2.095 rpnl:0.000\n",
      "2015-03-25 TICK WIKI/AAPL open: 126.54 close: 123.38\n",
      "2015-03-25 POSITION value:-128.785 upnl:-5.405 rpnl:0.000\n",
      "2015-03-26 TICK WIKI/AAPL open: 122.76 close: 124.24\n",
      "2015-03-26 POSITION value:-128.785 upnl:-4.545 rpnl:0.000\n",
      "2015-03-27 TICK WIKI/AAPL open: 124.57 close: 123.25\n",
      "2015-03-27 POSITION value:-128.785 upnl:-5.535 rpnl:0.000\n",
      "2015-03-30 TICK WIKI/AAPL open: 124.05 close: 126.37\n",
      "2015-03-30 POSITION value:-128.785 upnl:-2.415 rpnl:0.000\n",
      "2015-03-31 TICK WIKI/AAPL open: 126.09 close: 124.43\n",
      "2015-03-31 POSITION value:-128.785 upnl:-4.355 rpnl:0.000\n",
      "2015-04-01 TICK WIKI/AAPL open: 124.82 close: 124.25\n",
      "2015-04-01 POSITION value:-128.785 upnl:-4.535 rpnl:0.000\n",
      "2015-04-02 TICK WIKI/AAPL open: 125.03 close: 125.32\n",
      "2015-04-02 POSITION value:-128.785 upnl:-3.465 rpnl:0.000\n",
      "2015-04-06 TICK WIKI/AAPL open: 124.47 close: 127.35\n",
      "2015-04-06 POSITION value:-128.785 upnl:-1.435 rpnl:0.000\n",
      "2015-04-07 TICK WIKI/AAPL open: 127.64 close: 126.01\n",
      "2015-04-07 POSITION value:-128.785 upnl:-2.775 rpnl:0.000\n",
      "2015-04-08 TICK WIKI/AAPL open: 125.85 close: 125.6\n",
      "2015-04-08 POSITION value:-128.785 upnl:-3.185 rpnl:0.000\n",
      "2015-04-09 TICK WIKI/AAPL open: 125.85 close: 126.56\n",
      "2015-04-09 POSITION value:-128.785 upnl:-2.225 rpnl:0.000\n",
      "2015-04-10 TICK WIKI/AAPL open: 125.95 close: 127.1\n",
      "2015-04-10 POSITION value:-128.785 upnl:-1.685 rpnl:0.000\n",
      "2015-04-13 TICK WIKI/AAPL open: 128.37 close: 126.85\n",
      "2015-04-13 POSITION value:-128.785 upnl:-1.935 rpnl:0.000\n",
      "2015-04-14 TICK WIKI/AAPL open: 127.0 close: 126.3\n",
      "2015-04-14 POSITION value:-128.785 upnl:-2.485 rpnl:0.000\n",
      "2015-04-15 TICK WIKI/AAPL open: 126.41 close: 126.78\n",
      "2015-04-15 POSITION value:-128.785 upnl:-2.005 rpnl:0.000\n",
      "2015-04-16 TICK WIKI/AAPL open: 126.28 close: 126.17\n",
      "2015-04-16 POSITION value:-128.785 upnl:-2.615 rpnl:0.000\n",
      "2015-04-17 TICK WIKI/AAPL open: 125.55 close: 124.75\n",
      "2015-04-17 POSITION value:-128.785 upnl:-4.035 rpnl:0.000\n",
      "2015-04-20 TICK WIKI/AAPL open: 125.57 close: 127.6\n",
      "2015-04-20 POSITION value:-128.785 upnl:-1.185 rpnl:0.000\n",
      "2015-04-21 TICK WIKI/AAPL open: 128.1 close: 126.91\n",
      "2015-04-21 POSITION value:-128.785 upnl:-1.875 rpnl:0.000\n",
      "2015-04-22 TICK WIKI/AAPL open: 126.99 close: 128.62\n",
      "2015-04-22 POSITION value:-128.785 upnl:-0.165 rpnl:0.000\n",
      "2015-04-23 TICK WIKI/AAPL open: 128.3 close: 129.67\n",
      "2015-04-23 POSITION value:-128.785 upnl:0.885 rpnl:0.000\n",
      "2015-04-24 TICK WIKI/AAPL open: 130.49 close: 130.28\n",
      "2015-04-24 POSITION value:-128.785 upnl:1.495 rpnl:0.000\n",
      "2015-04-27 TICK WIKI/AAPL open: 132.31 close: 132.65\n",
      "2015-04-27 POSITION value:-128.785 upnl:3.865 rpnl:0.000\n",
      "2015-04-28 TICK WIKI/AAPL open: 134.455 close: 130.56\n",
      "2015-04-28 POSITION value:-128.785 upnl:1.775 rpnl:0.000\n",
      "2015-04-29 TICK WIKI/AAPL open: 130.16 close: 128.64\n",
      "2015-04-29 POSITION value:-128.785 upnl:-0.145 rpnl:0.000\n",
      "2015-04-30 TICK WIKI/AAPL open: 127.5 close: 125.15\n",
      "2015-04-30 POSITION value:-128.785 upnl:-3.635 rpnl:0.000\n",
      "2015-05-01 TICK WIKI/AAPL open: 126.1 close: 128.95\n",
      "2015-05-01 POSITION value:-128.785 upnl:0.165 rpnl:0.000\n",
      "2015-05-04 TICK WIKI/AAPL open: 129.5 close: 128.7\n",
      "2015-05-04 POSITION value:-128.785 upnl:-0.085 rpnl:0.000\n",
      "2015-05-05 TICK WIKI/AAPL open: 128.15 close: 125.8\n",
      "2015-05-05 POSITION value:-128.785 upnl:-2.985 rpnl:0.000\n",
      "2015-05-06 TICK WIKI/AAPL open: 126.56 close: 125.01\n",
      "2015-05-06 POSITION value:-128.785 upnl:-3.775 rpnl:0.000\n",
      "2015-05-07 TICK WIKI/AAPL open: 124.77 close: 125.26\n",
      "2015-05-07 POSITION value:-128.785 upnl:-3.525 rpnl:0.000\n",
      "2015-05-08 TICK WIKI/AAPL open: 126.68 close: 127.62\n",
      "2015-05-08 POSITION value:-128.785 upnl:-1.165 rpnl:0.000\n",
      "2015-05-11 TICK WIKI/AAPL open: 127.39 close: 126.32\n",
      "2015-05-11 POSITION value:-128.785 upnl:-2.465 rpnl:0.000\n",
      "2015-05-12 TICK WIKI/AAPL open: 125.6 close: 125.865\n",
      "2015-05-12 POSITION value:-128.785 upnl:-2.920 rpnl:0.000\n",
      "2015-05-13 TICK WIKI/AAPL open: 126.15 close: 126.01\n",
      "2015-05-13 POSITION value:-128.785 upnl:-2.775 rpnl:0.000\n",
      "2015-05-14 TICK WIKI/AAPL open: 127.41 close: 128.95\n",
      "2015-05-14 POSITION value:-128.785 upnl:0.165 rpnl:0.000\n",
      "2015-05-15 TICK WIKI/AAPL open: 129.07 close: 128.77\n",
      "2015-05-15 POSITION value:-128.785 upnl:-0.015 rpnl:0.000\n",
      "2015-05-18 TICK WIKI/AAPL open: 128.38 close: 130.19\n",
      "2015-05-18 POSITION value:-128.785 upnl:1.405 rpnl:0.000\n",
      "2015-05-19 TICK WIKI/AAPL open: 130.69 close: 130.07\n",
      "2015-05-19 POSITION value:-128.785 upnl:1.285 rpnl:0.000\n",
      "2015-05-20 TICK WIKI/AAPL open: 130.0 close: 130.06\n",
      "2015-05-20 POSITION value:-128.785 upnl:1.275 rpnl:0.000\n",
      "2015-05-21 TICK WIKI/AAPL open: 130.07 close: 131.39\n",
      "2015-05-21 POSITION value:-128.785 upnl:2.605 rpnl:0.000\n",
      "2015-05-22 TICK WIKI/AAPL open: 131.6 close: 132.54\n",
      "2015-05-22 POSITION value:-128.785 upnl:3.755 rpnl:0.000\n",
      "2015-05-26 TICK WIKI/AAPL open: 132.6 close: 129.62\n",
      "2015-05-26 POSITION value:-128.785 upnl:0.835 rpnl:0.000\n",
      "2015-05-27 TICK WIKI/AAPL open: 130.34 close: 132.045\n",
      "2015-05-27 POSITION value:-128.785 upnl:3.260 rpnl:0.000\n",
      "2015-05-28 TICK WIKI/AAPL open: 131.86 close: 131.78\n",
      "2015-05-28 POSITION value:-128.785 upnl:2.995 rpnl:0.000\n",
      "2015-05-29 TICK WIKI/AAPL open: 131.23 close: 130.28\n",
      "2015-05-29 POSITION value:-128.785 upnl:1.495 rpnl:0.000\n",
      "2015-06-01 TICK WIKI/AAPL open: 131.2 close: 130.535\n",
      "2015-06-01 POSITION value:-128.785 upnl:1.750 rpnl:0.000\n",
      "2015-06-02 TICK WIKI/AAPL open: 129.86 close: 129.96\n",
      "2015-06-02 POSITION value:-128.785 upnl:1.175 rpnl:0.000\n",
      "2015-06-03 TICK WIKI/AAPL open: 130.66 close: 130.12\n",
      "2015-06-03 POSITION value:-128.785 upnl:1.335 rpnl:0.000\n",
      "2015-06-04 TICK WIKI/AAPL open: 129.58 close: 129.36\n",
      "2015-06-04 POSITION value:-128.785 upnl:0.575 rpnl:0.000\n",
      "2015-06-05 TICK WIKI/AAPL open: 129.5 close: 128.65\n",
      "2015-06-05 POSITION value:-128.785 upnl:-0.135 rpnl:0.000\n",
      "2015-06-08 TICK WIKI/AAPL open: 128.9 close: 127.8\n",
      "2015-06-08 POSITION value:-128.785 upnl:-0.985 rpnl:0.000\n",
      "2015-06-09 TICK WIKI/AAPL open: 126.7 close: 127.42\n",
      "2015-06-09 POSITION value:-128.785 upnl:-1.365 rpnl:0.000\n",
      "2015-06-10 TICK WIKI/AAPL open: 127.92 close: 128.88\n",
      "2015-06-10 POSITION value:-128.785 upnl:0.095 rpnl:0.000\n",
      "2015-06-11 TICK WIKI/AAPL open: 129.18 close: 128.59\n",
      "2015-06-11 POSITION value:-128.785 upnl:-0.195 rpnl:0.000\n",
      "2015-06-12 TICK WIKI/AAPL open: 128.185 close: 127.17\n",
      "2015-06-12 POSITION value:-128.785 upnl:-1.615 rpnl:0.000\n",
      "2015-06-15 TICK WIKI/AAPL open: 126.1 close: 126.92\n",
      "2015-06-15 POSITION value:-128.785 upnl:-1.865 rpnl:0.000\n",
      "2015-06-16 TICK WIKI/AAPL open: 127.03 close: 127.6\n",
      "2015-06-16 POSITION value:-128.785 upnl:-1.185 rpnl:0.000\n",
      "2015-06-17 TICK WIKI/AAPL open: 127.72 close: 127.3\n",
      "2015-06-17 POSITION value:-128.785 upnl:-1.485 rpnl:0.000\n",
      "2015-06-18 TICK WIKI/AAPL open: 127.23 close: 127.88\n",
      "2015-06-18 POSITION value:-128.785 upnl:-0.905 rpnl:0.000\n",
      "2015-06-19 TICK WIKI/AAPL open: 127.71 close: 126.6\n",
      "2015-06-19 POSITION value:-128.785 upnl:-2.185 rpnl:0.000\n",
      "2015-06-22 TICK WIKI/AAPL open: 127.49 close: 127.61\n",
      "2015-06-22 POSITION value:-128.785 upnl:-1.175 rpnl:0.000\n",
      "2015-06-23 TICK WIKI/AAPL open: 127.48 close: 127.03\n",
      "2015-06-23 POSITION value:-128.785 upnl:-1.755 rpnl:0.000\n",
      "2015-06-24 TICK WIKI/AAPL open: 127.21 close: 128.11\n",
      "2015-06-24 POSITION value:-128.785 upnl:-0.675 rpnl:0.000\n",
      "2015-06-25 TICK WIKI/AAPL open: 128.86 close: 127.5\n",
      "2015-06-25 POSITION value:-128.785 upnl:-1.285 rpnl:0.000\n",
      "2015-06-26 TICK WIKI/AAPL open: 127.67 close: 126.75\n",
      "2015-06-26 POSITION value:-128.785 upnl:-2.035 rpnl:0.000\n",
      "2015-06-29 TICK WIKI/AAPL open: 125.46 close: 124.53\n",
      "2015-06-29 POSITION value:-128.785 upnl:-4.255 rpnl:0.000\n",
      "2015-06-30 TICK WIKI/AAPL open: 125.57 close: 125.425\n",
      "2015-06-30 POSITION value:-128.785 upnl:-3.360 rpnl:0.000\n",
      "2015-07-01 TICK WIKI/AAPL open: 126.9 close: 126.6\n",
      "2015-07-01 POSITION value:-128.785 upnl:-2.185 rpnl:0.000\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2015-07-02 TICK WIKI/AAPL open: 126.43 close: 126.44\n",
      "2015-07-02 POSITION value:-128.785 upnl:-2.345 rpnl:0.000\n",
      "2015-07-06 TICK WIKI/AAPL open: 124.94 close: 126.0\n",
      "2015-07-06 POSITION value:-128.785 upnl:-2.785 rpnl:0.000\n",
      "2015-07-07 TICK WIKI/AAPL open: 125.89 close: 125.69\n",
      "2015-07-07 POSITION value:-128.785 upnl:-3.095 rpnl:0.000\n",
      "2015-07-08 TICK WIKI/AAPL open: 124.48 close: 122.57\n",
      "2015-07-08 POSITION value:-128.785 upnl:-6.215 rpnl:0.000\n",
      "2015-07-09 TICK WIKI/AAPL open: 123.85 close: 120.07\n",
      "2015-07-09 POSITION value:-128.785 upnl:-8.715 rpnl:0.000\n",
      "2015-07-10 TICK WIKI/AAPL open: 121.94 close: 123.28\n",
      "2015-07-10 POSITION value:-128.785 upnl:-5.505 rpnl:0.000\n",
      "2015-07-13 TICK WIKI/AAPL open: 125.03 close: 125.66\n",
      "2015-07-13 POSITION value:-128.785 upnl:-3.125 rpnl:0.000\n",
      "2015-07-14 TICK WIKI/AAPL open: 126.04 close: 125.61\n",
      "2015-07-14 POSITION value:-128.785 upnl:-3.175 rpnl:0.000\n",
      "2015-07-15 TICK WIKI/AAPL open: 125.72 close: 126.82\n",
      "2015-07-15 POSITION value:-128.785 upnl:-1.965 rpnl:0.000\n",
      "2015-07-16 TICK WIKI/AAPL open: 127.74 close: 128.51\n",
      "2015-07-16 POSITION value:-128.785 upnl:-0.275 rpnl:0.000\n",
      "2015-07-17 TICK WIKI/AAPL open: 129.08 close: 129.62\n",
      "2015-07-17 POSITION value:-128.785 upnl:0.835 rpnl:0.000\n",
      "2015-07-20 TICK WIKI/AAPL open: 130.97 close: 132.07\n",
      "2015-07-20 POSITION value:-128.785 upnl:3.285 rpnl:0.000\n",
      "2015-07-21 TICK WIKI/AAPL open: 132.85 close: 130.75\n",
      "2015-07-21 POSITION value:-128.785 upnl:1.965 rpnl:0.000\n",
      "2015-07-22 TICK WIKI/AAPL open: 121.99 close: 125.22\n",
      "2015-07-22 POSITION value:-128.785 upnl:-3.565 rpnl:0.000\n",
      "2015-07-23 TICK WIKI/AAPL open: 126.2 close: 125.16\n",
      "2015-07-23 POSITION value:-128.785 upnl:-3.625 rpnl:0.000\n",
      "2015-07-24 TICK WIKI/AAPL open: 125.32 close: 124.5\n",
      "2015-07-24 POSITION value:-128.785 upnl:-4.285 rpnl:0.000\n",
      "2015-07-27 TICK WIKI/AAPL open: 123.09 close: 122.77\n",
      "2015-07-27 POSITION value:-128.785 upnl:-6.015 rpnl:0.000\n",
      "2015-07-28 TICK WIKI/AAPL open: 123.38 close: 123.38\n",
      "2015-07-28 POSITION value:-128.785 upnl:-5.405 rpnl:0.000\n",
      "2015-07-29 TICK WIKI/AAPL open: 123.15 close: 122.99\n",
      "2015-07-29 POSITION value:-128.785 upnl:-5.795 rpnl:0.000\n",
      "2015-07-30 TICK WIKI/AAPL open: 122.32 close: 122.37\n",
      "2015-07-30 POSITION value:-128.785 upnl:-6.415 rpnl:0.000\n",
      "2015-07-31 TICK WIKI/AAPL open: 122.6 close: 121.3\n",
      "2015-07-31 POSITION value:-128.785 upnl:-7.485 rpnl:0.000\n",
      "2015-08-03 TICK WIKI/AAPL open: 121.5 close: 118.44\n",
      "2015-08-03 POSITION value:-128.785 upnl:-10.345 rpnl:0.000\n",
      "2015-08-04 TICK WIKI/AAPL open: 117.42 close: 114.64\n",
      "2015-08-04 POSITION value:-128.785 upnl:-14.145 rpnl:0.000\n",
      "2015-08-05 TICK WIKI/AAPL open: 112.95 close: 115.4\n",
      "2015-08-05 POSITION value:-128.785 upnl:-13.385 rpnl:0.000\n",
      "2015-08-06 TICK WIKI/AAPL open: 115.97 close: 115.13\n",
      "2015-08-06 POSITION value:-128.785 upnl:-13.655 rpnl:0.000\n",
      "2015-08-07 TICK WIKI/AAPL open: 114.58 close: 115.52\n",
      "2015-08-07 POSITION value:-128.785 upnl:-13.265 rpnl:0.000\n",
      "2015-08-10 TICK WIKI/AAPL open: 116.53 close: 119.72\n",
      "2015-08-10 POSITION value:-128.785 upnl:-9.065 rpnl:0.000\n",
      "2015-08-11 TICK WIKI/AAPL open: 117.81 close: 113.49\n",
      "2015-08-11 POSITION value:-128.785 upnl:-15.295 rpnl:0.000\n",
      "2015-08-12 TICK WIKI/AAPL open: 112.53 close: 115.24\n",
      "2015-08-12 POSITION value:-128.785 upnl:-13.545 rpnl:0.000\n",
      "2015-08-13 TICK WIKI/AAPL open: 116.04 close: 115.15\n",
      "2015-08-13 POSITION value:-128.785 upnl:-13.635 rpnl:0.000\n",
      "2015-08-14 TICK WIKI/AAPL open: 114.32 close: 115.96\n",
      "2015-08-14 POSITION value:-128.785 upnl:-12.825 rpnl:0.000\n",
      "2015-08-17 TICK WIKI/AAPL open: 116.04 close: 117.16\n",
      "2015-08-17 POSITION value:-128.785 upnl:-11.625 rpnl:0.000\n",
      "2015-08-18 TICK WIKI/AAPL open: 116.43 close: 116.5\n",
      "2015-08-18 POSITION value:-128.785 upnl:-12.285 rpnl:0.000\n",
      "2015-08-19 TICK WIKI/AAPL open: 116.1 close: 115.01\n",
      "2015-08-19 POSITION value:-128.785 upnl:-13.775 rpnl:0.000\n",
      "2015-08-20 TICK WIKI/AAPL open: 114.08 close: 112.65\n",
      "2015-08-20 POSITION value:-128.785 upnl:-16.135 rpnl:0.000\n",
      "2015-08-21 TICK WIKI/AAPL open: 110.43 close: 105.76\n",
      "2015-08-21 POSITION value:-128.785 upnl:-23.025 rpnl:0.000\n",
      "2015-08-24 TICK WIKI/AAPL open: 94.87 close: 103.12\n",
      "2015-08-24 POSITION value:-128.785 upnl:-25.665 rpnl:0.000\n",
      "2015-08-25 TICK WIKI/AAPL open: 111.11 close: 103.74\n",
      "2015-08-25 POSITION value:-128.785 upnl:-25.045 rpnl:0.000\n",
      "2015-08-26 TICK WIKI/AAPL open: 107.085 close: 109.69\n",
      "2015-08-26 POSITION value:-128.785 upnl:-19.095 rpnl:0.000\n",
      "2015-08-27 TICK WIKI/AAPL open: 112.25 close: 112.92\n",
      "2015-08-27 POSITION value:-128.785 upnl:-15.865 rpnl:0.000\n",
      "2015-08-28 TICK WIKI/AAPL open: 112.17 close: 113.29\n",
      "2015-08-28 POSITION value:-128.785 upnl:-15.495 rpnl:0.000\n",
      "2015-08-31 TICK WIKI/AAPL open: 112.13 close: 112.76\n",
      "2015-08-31 POSITION value:-128.785 upnl:-16.025 rpnl:0.000\n",
      "2015-09-01 TICK WIKI/AAPL open: 110.18 close: 107.72\n",
      "2015-09-01 POSITION value:-128.785 upnl:-21.065 rpnl:0.000\n",
      "2015-09-02 TICK WIKI/AAPL open: 110.0 close: 112.34\n",
      "2015-09-02 POSITION value:-128.785 upnl:-16.445 rpnl:0.000\n",
      "2015-09-03 TICK WIKI/AAPL open: 112.49 close: 110.37\n",
      "2015-09-03 POSITION value:-128.785 upnl:-18.415 rpnl:0.000\n",
      "2015-09-04 TICK WIKI/AAPL open: 108.97 close: 109.27\n",
      "2015-09-04 POSITION value:-128.785 upnl:-19.515 rpnl:0.000\n",
      "2015-09-08 TICK WIKI/AAPL open: 111.65 close: 112.31\n",
      "2015-09-08 POSITION value:-128.785 upnl:-16.475 rpnl:0.000\n",
      "2015-09-09 TICK WIKI/AAPL open: 113.76 close: 110.15\n",
      "2015-09-09 POSITION value:-128.785 upnl:-18.635 rpnl:0.000\n",
      "2015-09-10 TICK WIKI/AAPL open: 110.27 close: 112.57\n",
      "2015-09-10 POSITION value:-128.785 upnl:-16.215 rpnl:0.000\n",
      "2015-09-11 TICK WIKI/AAPL open: 111.79 close: 114.21\n",
      "2015-09-11 POSITION value:-128.785 upnl:-14.575 rpnl:0.000\n",
      "2015-09-14 TICK WIKI/AAPL open: 116.58 close: 115.31\n",
      "2015-09-14 POSITION value:-128.785 upnl:-13.475 rpnl:0.000\n",
      "2015-09-15 TICK WIKI/AAPL open: 115.93 close: 116.28\n",
      "2015-09-15 POSITION value:-128.785 upnl:-12.505 rpnl:0.000\n",
      "2015-09-16 TICK WIKI/AAPL open: 116.25 close: 116.41\n",
      "2015-09-16 POSITION value:-128.785 upnl:-12.375 rpnl:0.000\n",
      "2015-09-17 TICK WIKI/AAPL open: 115.66 close: 113.92\n",
      "2015-09-17 POSITION value:-128.785 upnl:-14.865 rpnl:0.000\n",
      "2015-09-18 TICK WIKI/AAPL open: 112.21 close: 113.45\n",
      "2015-09-18 POSITION value:-128.785 upnl:-15.335 rpnl:0.000\n",
      "2015-09-21 TICK WIKI/AAPL open: 113.67 close: 115.21\n",
      "2015-09-21 POSITION value:-128.785 upnl:-13.575 rpnl:0.000\n",
      "2015-09-22 TICK WIKI/AAPL open: 113.38 close: 113.4\n",
      "2015-09-22 POSITION value:-128.785 upnl:-15.385 rpnl:0.000\n",
      "2015-09-23 TICK WIKI/AAPL open: 113.63 close: 114.32\n",
      "2015-09-23 POSITION value:-128.785 upnl:-14.465 rpnl:0.000\n",
      "2015-09-24 TICK WIKI/AAPL open: 113.25 close: 115.0\n",
      "2015-09-24 POSITION value:-128.785 upnl:-13.785 rpnl:0.000\n",
      "2015-09-25 TICK WIKI/AAPL open: 116.44 close: 114.71\n",
      "2015-09-25 POSITION value:-128.785 upnl:-14.075 rpnl:0.000\n",
      "2015-09-28 TICK WIKI/AAPL open: 113.85 close: 112.44\n",
      "2015-09-28 POSITION value:-128.785 upnl:-16.345 rpnl:0.000\n",
      "2015-09-29 TICK WIKI/AAPL open: 112.83 close: 109.06\n",
      "2015-09-29 POSITION value:-128.785 upnl:-19.725 rpnl:0.000\n",
      "2015-09-30 TICK WIKI/AAPL open: 110.17 close: 109.95\n",
      "2015-09-30 POSITION value:-128.785 upnl:-18.835 rpnl:0.000\n",
      "2015-10-01 TICK WIKI/AAPL open: 109.07 close: 109.58\n",
      "2015-10-01 POSITION value:-128.785 upnl:-19.205 rpnl:0.000\n",
      "2015-10-02 TICK WIKI/AAPL open: 108.01 close: 110.38\n",
      "2015-10-02 POSITION value:-128.785 upnl:-18.405 rpnl:0.000\n",
      "2015-10-05 TICK WIKI/AAPL open: 109.88 close: 110.78\n",
      "2015-10-05 POSITION value:-128.785 upnl:-18.005 rpnl:0.000\n",
      "2015-10-06 TICK WIKI/AAPL open: 110.63 close: 111.31\n",
      "2015-10-06 POSITION value:-128.785 upnl:-17.475 rpnl:0.000\n",
      "2015-10-07 TICK WIKI/AAPL open: 111.74 close: 110.78\n",
      "2015-10-07 POSITION value:-128.785 upnl:-18.005 rpnl:0.000\n",
      "2015-10-08 TICK WIKI/AAPL open: 110.19 close: 109.5\n",
      "2015-10-08 POSITION value:-128.785 upnl:-19.285 rpnl:0.000\n",
      "2015-10-09 TICK WIKI/AAPL open: 110.0 close: 112.12\n",
      "2015-10-09 POSITION value:-128.785 upnl:-16.665 rpnl:0.000\n",
      "2015-10-12 TICK WIKI/AAPL open: 112.73 close: 111.6\n",
      "2015-10-12 POSITION value:-128.785 upnl:-17.185 rpnl:0.000\n",
      "2015-10-13 TICK WIKI/AAPL open: 110.82 close: 111.79\n",
      "2015-10-13 POSITION value:-128.785 upnl:-16.995 rpnl:0.000\n",
      "2015-10-14 TICK WIKI/AAPL open: 111.29 close: 110.21\n",
      "2015-10-14 POSITION value:-128.785 upnl:-18.575 rpnl:0.000\n",
      "2015-10-15 TICK WIKI/AAPL open: 110.93 close: 111.86\n",
      "2015-10-15 POSITION value:-128.785 upnl:-16.925 rpnl:0.000\n",
      "2015-10-16 TICK WIKI/AAPL open: 111.78 close: 111.04\n",
      "2015-10-16 POSITION value:-128.785 upnl:-17.745 rpnl:0.000\n",
      "2015-10-19 TICK WIKI/AAPL open: 110.8 close: 111.73\n",
      "2015-10-19 POSITION value:-128.785 upnl:-17.055 rpnl:0.000\n",
      "2015-10-20 TICK WIKI/AAPL open: 111.34 close: 113.77\n",
      "2015-10-20 POSITION value:-128.785 upnl:-15.015 rpnl:0.000\n",
      "2015-10-21 TICK WIKI/AAPL open: 114.0 close: 113.76\n",
      "2015-10-21 POSITION value:-128.785 upnl:-15.025 rpnl:0.000\n",
      "2015-10-22 TICK WIKI/AAPL open: 114.33 close: 115.5\n",
      "2015-10-22 POSITION value:-128.785 upnl:-13.285 rpnl:0.000\n",
      "2015-10-23 TICK WIKI/AAPL open: 116.7 close: 119.08\n",
      "2015-10-23 POSITION value:-128.785 upnl:-9.705 rpnl:0.000\n",
      "2015-10-26 TICK WIKI/AAPL open: 118.08 close: 115.28\n",
      "2015-10-26 POSITION value:-128.785 upnl:-13.505 rpnl:0.000\n",
      "2015-10-27 TICK WIKI/AAPL open: 115.4 close: 114.55\n",
      "2015-10-27 POSITION value:-128.785 upnl:-14.235 rpnl:0.000\n",
      "2015-10-28 TICK WIKI/AAPL open: 116.93 close: 119.27\n",
      "2015-10-28 POSITION value:-128.785 upnl:-9.515 rpnl:0.000\n",
      "2015-10-29 TICK WIKI/AAPL open: 118.7 close: 120.53\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2015-10-29 POSITION value:-128.785 upnl:-8.255 rpnl:0.000\n",
      "2015-10-30 TICK WIKI/AAPL open: 120.99 close: 119.5\n",
      "2015-10-30 POSITION value:-128.785 upnl:-9.285 rpnl:0.000\n",
      "2015-11-02 TICK WIKI/AAPL open: 119.87 close: 121.18\n",
      "2015-11-02 POSITION value:-128.785 upnl:-7.605 rpnl:0.000\n",
      "2015-11-03 TICK WIKI/AAPL open: 120.79 close: 122.57\n",
      "2015-11-03 POSITION value:-128.785 upnl:-6.215 rpnl:0.000\n",
      "2015-11-04 TICK WIKI/AAPL open: 123.13 close: 122.0\n",
      "2015-11-04 POSITION value:-128.785 upnl:-6.785 rpnl:0.000\n",
      "2015-11-05 TICK WIKI/AAPL open: 121.85 close: 120.92\n",
      "2015-11-05 POSITION value:-128.785 upnl:-7.865 rpnl:0.000\n",
      "2015-11-06 TICK WIKI/AAPL open: 121.11 close: 121.06\n",
      "2015-11-06 POSITION value:-128.785 upnl:-7.725 rpnl:0.000\n",
      "2015-11-09 TICK WIKI/AAPL open: 120.96 close: 120.57\n",
      "2015-11-09 POSITION value:-128.785 upnl:-8.215 rpnl:0.000\n",
      "2015-11-10 TICK WIKI/AAPL open: 116.9 close: 116.77\n",
      "2015-11-10 POSITION value:-128.785 upnl:-12.015 rpnl:0.000\n",
      "2015-11-11 TICK WIKI/AAPL open: 116.37 close: 116.11\n",
      "2015-11-11 POSITION value:-128.785 upnl:-12.675 rpnl:0.000\n",
      "2015-11-12 TICK WIKI/AAPL open: 116.26 close: 115.72\n",
      "2015-11-12 POSITION value:-128.785 upnl:-13.065 rpnl:0.000\n",
      "2015-11-13 TICK WIKI/AAPL open: 115.2 close: 112.34\n",
      "2015-11-13 POSITION value:-128.785 upnl:-16.445 rpnl:0.000\n",
      "2015-11-16 TICK WIKI/AAPL open: 111.38 close: 114.175\n",
      "2015-11-16 POSITION value:-128.785 upnl:-14.610 rpnl:0.000\n",
      "2015-11-17 TICK WIKI/AAPL open: 114.92 close: 113.69\n",
      "2015-11-17 POSITION value:-128.785 upnl:-15.095 rpnl:0.000\n",
      "2015-11-18 TICK WIKI/AAPL open: 115.76 close: 117.29\n",
      "2015-11-18 POSITION value:-128.785 upnl:-11.495 rpnl:0.000\n",
      "2015-11-19 TICK WIKI/AAPL open: 117.64 close: 118.78\n",
      "2015-11-19 POSITION value:-128.785 upnl:-10.005 rpnl:0.000\n",
      "2015-11-20 TICK WIKI/AAPL open: 119.2 close: 119.3\n",
      "2015-11-20 POSITION value:-128.785 upnl:-9.485 rpnl:0.000\n",
      "2015-11-23 TICK WIKI/AAPL open: 119.27 close: 117.75\n",
      "2015-11-23 POSITION value:-128.785 upnl:-11.035 rpnl:0.000\n",
      "2015-11-24 TICK WIKI/AAPL open: 117.33 close: 118.88\n",
      "2015-11-24 POSITION value:-128.785 upnl:-9.905 rpnl:0.000\n",
      "2015-11-25 TICK WIKI/AAPL open: 119.21 close: 118.03\n",
      "2015-11-25 POSITION value:-128.785 upnl:-10.755 rpnl:0.000\n",
      "2015-11-27 TICK WIKI/AAPL open: 118.29 close: 117.81\n",
      "2015-11-27 POSITION value:-128.785 upnl:-10.975 rpnl:0.000\n",
      "2015-11-30 TICK WIKI/AAPL open: 117.99 close: 118.3\n",
      "2015-11-30 POSITION value:-128.785 upnl:-10.485 rpnl:0.000\n",
      "2015-12-01 TICK WIKI/AAPL open: 118.75 close: 117.34\n",
      "2015-12-01 POSITION value:-128.785 upnl:-11.445 rpnl:0.000\n",
      "2015-12-02 TICK WIKI/AAPL open: 117.05 close: 116.28\n",
      "2015-12-02 POSITION value:-128.785 upnl:-12.505 rpnl:0.000\n",
      "2015-12-03 TICK WIKI/AAPL open: 116.55 close: 115.2\n",
      "2015-12-03 POSITION value:-128.785 upnl:-13.585 rpnl:0.000\n",
      "2015-12-04 TICK WIKI/AAPL open: 115.29 close: 119.03\n",
      "2015-12-04 POSITION value:-128.785 upnl:-9.755 rpnl:0.000\n",
      "2015-12-07 TICK WIKI/AAPL open: 118.98 close: 118.28\n",
      "2015-12-07 POSITION value:-128.785 upnl:-10.505 rpnl:0.000\n",
      "2015-12-08 TICK WIKI/AAPL open: 117.52 close: 118.23\n",
      "2015-12-08 POSITION value:-128.785 upnl:-10.555 rpnl:0.000\n",
      "2015-12-09 TICK WIKI/AAPL open: 117.64 close: 115.62\n",
      "2015-12-09 POSITION value:-128.785 upnl:-13.165 rpnl:0.000\n",
      "2015-12-10 TICK WIKI/AAPL open: 116.04 close: 116.17\n",
      "2015-12-10 POSITION value:-128.785 upnl:-12.615 rpnl:0.000\n",
      "2015-12-11 TICK WIKI/AAPL open: 115.19 close: 113.18\n",
      "2015-12-11 POSITION value:-128.785 upnl:-15.605 rpnl:0.000\n",
      "2015-12-14 TICK WIKI/AAPL open: 112.18 close: 112.48\n",
      "2015-12-14 POSITION value:-128.785 upnl:-16.305 rpnl:0.000\n",
      "2015-12-15 TICK WIKI/AAPL open: 111.94 close: 110.49\n",
      "2015-12-15 POSITION value:-128.785 upnl:-18.295 rpnl:0.000\n",
      "2015-12-16 TICK WIKI/AAPL open: 111.07 close: 111.34\n",
      "2015-12-16 POSITION value:-128.785 upnl:-17.445 rpnl:0.000\n",
      "2015-12-17 TICK WIKI/AAPL open: 112.02 close: 108.98\n",
      "2015-12-17 POSITION value:-128.785 upnl:-19.805 rpnl:0.000\n",
      "2015-12-18 TICK WIKI/AAPL open: 108.91 close: 106.03\n",
      "2015-12-18 POSITION value:-128.785 upnl:-22.755 rpnl:0.000\n",
      "2015-12-21 TICK WIKI/AAPL open: 107.28 close: 107.33\n",
      "2015-12-21 POSITION value:-128.785 upnl:-21.455 rpnl:0.000\n",
      "2015-12-22 TICK WIKI/AAPL open: 107.4 close: 107.23\n",
      "2015-12-22 POSITION value:-128.785 upnl:-21.555 rpnl:0.000\n",
      "2015-12-23 TICK WIKI/AAPL open: 107.27 close: 108.61\n",
      "2015-12-23 POSITION value:-128.785 upnl:-20.175 rpnl:0.000\n",
      "2015-12-24 TICK WIKI/AAPL open: 109.0 close: 108.03\n",
      "2015-12-24 POSITION value:-128.785 upnl:-20.755 rpnl:0.000\n",
      "2015-12-28 TICK WIKI/AAPL open: 107.59 close: 106.82\n",
      "2015-12-28 POSITION value:-128.785 upnl:-21.965 rpnl:0.000\n",
      "2015-12-29 TICK WIKI/AAPL open: 106.96 close: 108.74\n",
      "2015-12-29 POSITION value:-128.785 upnl:-20.045 rpnl:0.000\n",
      "2015-12-30 TICK WIKI/AAPL open: 108.58 close: 107.32\n",
      "2015-12-30 POSITION value:-128.785 upnl:-21.465 rpnl:0.000\n",
      "2015-12-31 TICK WIKI/AAPL open: 107.01 close: 105.26\n",
      "2015-12-31 POSITION value:-128.785 upnl:-23.525 rpnl:0.000\n",
      "2016-01-04 TICK WIKI/AAPL open: 102.61 close: 105.35\n",
      "2016-01-04 POSITION value:-128.785 upnl:-23.435 rpnl:0.000\n",
      "2016-01-05 TICK WIKI/AAPL open: 105.75 close: 102.71\n",
      "2016-01-05 POSITION value:-128.785 upnl:-26.075 rpnl:0.000\n",
      "2016-01-06 TICK WIKI/AAPL open: 100.56 close: 100.7\n",
      "2016-01-06 POSITION value:-128.785 upnl:-28.085 rpnl:0.000\n",
      "2016-01-07 TICK WIKI/AAPL open: 98.68 close: 96.45\n",
      "2016-01-07 POSITION value:-128.785 upnl:-32.335 rpnl:0.000\n",
      "2016-01-08 TICK WIKI/AAPL open: 98.55 close: 96.96\n",
      "2016-01-08 POSITION value:-128.785 upnl:-31.825 rpnl:0.000\n",
      "2016-01-11 TICK WIKI/AAPL open: 98.97 close: 98.53\n",
      "2016-01-11 POSITION value:-128.785 upnl:-30.255 rpnl:0.000\n",
      "2016-01-12 TICK WIKI/AAPL open: 100.55 close: 99.96\n",
      "2016-01-12 POSITION value:-128.785 upnl:-28.825 rpnl:0.000\n",
      "2016-01-13 TICK WIKI/AAPL open: 100.32 close: 97.39\n",
      "2016-01-13 POSITION value:-128.785 upnl:-31.395 rpnl:0.000\n",
      "2016-01-14 TICK WIKI/AAPL open: 97.96 close: 99.52\n",
      "2016-01-14 POSITION value:-128.785 upnl:-29.265 rpnl:0.000\n",
      "2016-01-15 TICK WIKI/AAPL open: 96.2 close: 97.13\n",
      "2016-01-15 POSITION value:-128.785 upnl:-31.655 rpnl:0.000\n",
      "2016-01-19 TICK WIKI/AAPL open: 98.41 close: 96.66\n",
      "2016-01-19 POSITION value:-128.785 upnl:-32.125 rpnl:0.000\n",
      "2016-01-20 TICK WIKI/AAPL open: 95.1 close: 96.79\n",
      "2016-01-20 POSITION value:-128.785 upnl:-31.995 rpnl:0.000\n",
      "2016-01-21 TICK WIKI/AAPL open: 97.06 close: 96.3\n",
      "2016-01-21 POSITION value:-128.785 upnl:-32.485 rpnl:0.000\n",
      "2016-01-22 TICK WIKI/AAPL open: 98.63 close: 101.42\n",
      "2016-01-22 SELL signal\n",
      "2016-01-22 ORDER SELL WIKI/AAPL 1\n",
      "2016-01-22 POSITION value:-128.785 upnl:-27.365 rpnl:0.000\n",
      "2016-01-25 TICK WIKI/AAPL open: 101.52 close: 99.44\n",
      "2016-01-25 FILLED SELL 1 WIKI/AAPL at 101.52\n",
      "2016-01-25 POSITION value:0.000 upnl:0.000 rpnl:-27.265\n",
      "2016-01-26 TICK WIKI/AAPL open: 99.93 close: 99.99\n",
      "2016-01-26 POSITION value:0.000 upnl:0.000 rpnl:-27.265\n",
      "2016-01-27 TICK WIKI/AAPL open: 96.04 close: 93.42\n",
      "2016-01-27 BUY signal\n",
      "2016-01-27 ORDER BUY WIKI/AAPL 1\n",
      "2016-01-27 POSITION value:0.000 upnl:0.000 rpnl:-27.265\n",
      "2016-01-28 TICK WIKI/AAPL open: 93.79 close: 94.09\n",
      "2016-01-28 FILLED BUY 1 WIKI/AAPL at 93.79\n",
      "2016-01-28 POSITION value:-93.790 upnl:0.300 rpnl:-27.265\n",
      "2016-01-29 TICK WIKI/AAPL open: 94.79 close: 97.34\n",
      "2016-01-29 POSITION value:-93.790 upnl:3.550 rpnl:-27.265\n",
      "2016-02-01 TICK WIKI/AAPL open: 96.47 close: 96.43\n",
      "2016-02-01 POSITION value:-93.790 upnl:2.640 rpnl:-27.265\n",
      "2016-02-02 TICK WIKI/AAPL open: 95.42 close: 94.48\n",
      "2016-02-02 POSITION value:-93.790 upnl:0.690 rpnl:-27.265\n",
      "2016-02-03 TICK WIKI/AAPL open: 95.0 close: 96.35\n",
      "2016-02-03 POSITION value:-93.790 upnl:2.560 rpnl:-27.265\n",
      "2016-02-04 TICK WIKI/AAPL open: 95.86 close: 96.6\n",
      "2016-02-04 POSITION value:-93.790 upnl:2.810 rpnl:-27.265\n",
      "2016-02-05 TICK WIKI/AAPL open: 96.52 close: 94.02\n",
      "2016-02-05 POSITION value:-93.790 upnl:0.230 rpnl:-27.265\n",
      "2016-02-08 TICK WIKI/AAPL open: 93.13 close: 95.01\n",
      "2016-02-08 POSITION value:-93.790 upnl:1.220 rpnl:-27.265\n",
      "2016-02-09 TICK WIKI/AAPL open: 94.29 close: 94.99\n",
      "2016-02-09 POSITION value:-93.790 upnl:1.200 rpnl:-27.265\n",
      "2016-02-10 TICK WIKI/AAPL open: 95.92 close: 94.27\n",
      "2016-02-10 POSITION value:-93.790 upnl:0.480 rpnl:-27.265\n",
      "2016-02-11 TICK WIKI/AAPL open: 93.79 close: 93.7\n",
      "2016-02-11 POSITION value:-93.790 upnl:-0.090 rpnl:-27.265\n",
      "2016-02-12 TICK WIKI/AAPL open: 94.19 close: 93.99\n",
      "2016-02-12 POSITION value:-93.790 upnl:0.200 rpnl:-27.265\n",
      "2016-02-16 TICK WIKI/AAPL open: 95.02 close: 96.64\n",
      "2016-02-16 POSITION value:-93.790 upnl:2.850 rpnl:-27.265\n",
      "2016-02-17 TICK WIKI/AAPL open: 96.67 close: 98.12\n",
      "2016-02-17 POSITION value:-93.790 upnl:4.330 rpnl:-27.265\n",
      "2016-02-18 TICK WIKI/AAPL open: 98.84 close: 96.26\n",
      "2016-02-18 POSITION value:-93.790 upnl:2.470 rpnl:-27.265\n",
      "2016-02-19 TICK WIKI/AAPL open: 96.0 close: 96.04\n",
      "2016-02-19 POSITION value:-93.790 upnl:2.250 rpnl:-27.265\n",
      "2016-02-22 TICK WIKI/AAPL open: 96.31 close: 96.88\n",
      "2016-02-22 POSITION value:-93.790 upnl:3.090 rpnl:-27.265\n",
      "2016-02-23 TICK WIKI/AAPL open: 96.4 close: 94.69\n",
      "2016-02-23 POSITION value:-93.790 upnl:0.900 rpnl:-27.265\n",
      "2016-02-24 TICK WIKI/AAPL open: 93.98 close: 96.1\n",
      "2016-02-24 POSITION value:-93.790 upnl:2.310 rpnl:-27.265\n",
      "2016-02-25 TICK WIKI/AAPL open: 96.05 close: 96.76\n",
      "2016-02-25 POSITION value:-93.790 upnl:2.970 rpnl:-27.265\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2016-02-26 TICK WIKI/AAPL open: 97.2 close: 96.91\n",
      "2016-02-26 POSITION value:-93.790 upnl:3.120 rpnl:-27.265\n",
      "2016-02-29 TICK WIKI/AAPL open: 96.86 close: 96.69\n",
      "2016-02-29 POSITION value:-93.790 upnl:2.900 rpnl:-27.265\n",
      "2016-03-01 TICK WIKI/AAPL open: 97.65 close: 100.53\n",
      "2016-03-01 POSITION value:-93.790 upnl:6.740 rpnl:-27.265\n",
      "2016-03-02 TICK WIKI/AAPL open: 100.51 close: 100.75\n",
      "2016-03-02 POSITION value:-93.790 upnl:6.960 rpnl:-27.265\n",
      "2016-03-03 TICK WIKI/AAPL open: 100.58 close: 101.5\n",
      "2016-03-03 POSITION value:-93.790 upnl:7.710 rpnl:-27.265\n",
      "2016-03-04 TICK WIKI/AAPL open: 102.37 close: 103.01\n",
      "2016-03-04 POSITION value:-93.790 upnl:9.220 rpnl:-27.265\n",
      "2016-03-07 TICK WIKI/AAPL open: 102.39 close: 101.87\n",
      "2016-03-07 POSITION value:-93.790 upnl:8.080 rpnl:-27.265\n",
      "2016-03-08 TICK WIKI/AAPL open: 100.78 close: 101.03\n",
      "2016-03-08 POSITION value:-93.790 upnl:7.240 rpnl:-27.265\n",
      "2016-03-09 TICK WIKI/AAPL open: 101.31 close: 101.12\n",
      "2016-03-09 POSITION value:-93.790 upnl:7.330 rpnl:-27.265\n",
      "2016-03-10 TICK WIKI/AAPL open: 101.41 close: 101.17\n",
      "2016-03-10 POSITION value:-93.790 upnl:7.380 rpnl:-27.265\n",
      "2016-03-11 TICK WIKI/AAPL open: 102.24 close: 102.26\n",
      "2016-03-11 POSITION value:-93.790 upnl:8.470 rpnl:-27.265\n",
      "2016-03-14 TICK WIKI/AAPL open: 101.91 close: 102.52\n",
      "2016-03-14 POSITION value:-93.790 upnl:8.730 rpnl:-27.265\n",
      "2016-03-15 TICK WIKI/AAPL open: 103.96 close: 104.58\n",
      "2016-03-15 POSITION value:-93.790 upnl:10.790 rpnl:-27.265\n",
      "2016-03-16 TICK WIKI/AAPL open: 104.61 close: 105.97\n",
      "2016-03-16 POSITION value:-93.790 upnl:12.180 rpnl:-27.265\n",
      "2016-03-17 TICK WIKI/AAPL open: 105.52 close: 105.8\n",
      "2016-03-17 POSITION value:-93.790 upnl:12.010 rpnl:-27.265\n",
      "2016-03-18 TICK WIKI/AAPL open: 106.34 close: 105.92\n",
      "2016-03-18 POSITION value:-93.790 upnl:12.130 rpnl:-27.265\n",
      "2016-03-21 TICK WIKI/AAPL open: 105.93 close: 105.91\n",
      "2016-03-21 POSITION value:-93.790 upnl:12.120 rpnl:-27.265\n",
      "2016-03-22 TICK WIKI/AAPL open: 105.25 close: 106.72\n",
      "2016-03-22 POSITION value:-93.790 upnl:12.930 rpnl:-27.265\n",
      "2016-03-23 TICK WIKI/AAPL open: 106.48 close: 106.13\n",
      "2016-03-23 POSITION value:-93.790 upnl:12.340 rpnl:-27.265\n",
      "2016-03-24 TICK WIKI/AAPL open: 105.47 close: 105.67\n",
      "2016-03-24 POSITION value:-93.790 upnl:11.880 rpnl:-27.265\n",
      "2016-03-28 TICK WIKI/AAPL open: 106.0 close: 105.19\n",
      "2016-03-28 POSITION value:-93.790 upnl:11.400 rpnl:-27.265\n",
      "2016-03-29 TICK WIKI/AAPL open: 104.89 close: 107.68\n",
      "2016-03-29 POSITION value:-93.790 upnl:13.890 rpnl:-27.265\n",
      "2016-03-30 TICK WIKI/AAPL open: 108.65 close: 109.56\n",
      "2016-03-30 POSITION value:-93.790 upnl:15.770 rpnl:-27.265\n",
      "2016-03-31 TICK WIKI/AAPL open: 109.72 close: 108.99\n",
      "2016-03-31 POSITION value:-93.790 upnl:15.200 rpnl:-27.265\n",
      "2016-04-01 TICK WIKI/AAPL open: 108.78 close: 109.99\n",
      "2016-04-01 POSITION value:-93.790 upnl:16.200 rpnl:-27.265\n",
      "2016-04-04 TICK WIKI/AAPL open: 110.42 close: 111.12\n",
      "2016-04-04 POSITION value:-93.790 upnl:17.330 rpnl:-27.265\n",
      "2016-04-05 TICK WIKI/AAPL open: 109.51 close: 109.81\n",
      "2016-04-05 POSITION value:-93.790 upnl:16.020 rpnl:-27.265\n",
      "2016-04-06 TICK WIKI/AAPL open: 110.23 close: 110.96\n",
      "2016-04-06 POSITION value:-93.790 upnl:17.170 rpnl:-27.265\n",
      "2016-04-07 TICK WIKI/AAPL open: 109.95 close: 108.54\n",
      "2016-04-07 POSITION value:-93.790 upnl:14.750 rpnl:-27.265\n",
      "2016-04-08 TICK WIKI/AAPL open: 108.91 close: 108.66\n",
      "2016-04-08 POSITION value:-93.790 upnl:14.870 rpnl:-27.265\n",
      "2016-04-11 TICK WIKI/AAPL open: 108.97 close: 109.02\n",
      "2016-04-11 POSITION value:-93.790 upnl:15.230 rpnl:-27.265\n",
      "2016-04-12 TICK WIKI/AAPL open: 109.34 close: 110.44\n",
      "2016-04-12 POSITION value:-93.790 upnl:16.650 rpnl:-27.265\n",
      "2016-04-13 TICK WIKI/AAPL open: 110.8 close: 112.04\n",
      "2016-04-13 POSITION value:-93.790 upnl:18.250 rpnl:-27.265\n",
      "2016-04-14 TICK WIKI/AAPL open: 111.62 close: 112.1\n",
      "2016-04-14 POSITION value:-93.790 upnl:18.310 rpnl:-27.265\n",
      "2016-04-15 TICK WIKI/AAPL open: 112.11 close: 109.85\n",
      "2016-04-15 POSITION value:-93.790 upnl:16.060 rpnl:-27.265\n",
      "2016-04-18 TICK WIKI/AAPL open: 108.89 close: 107.48\n",
      "2016-04-18 POSITION value:-93.790 upnl:13.690 rpnl:-27.265\n",
      "2016-04-19 TICK WIKI/AAPL open: 107.88 close: 106.91\n",
      "2016-04-19 POSITION value:-93.790 upnl:13.120 rpnl:-27.265\n",
      "2016-04-20 TICK WIKI/AAPL open: 106.64 close: 107.13\n",
      "2016-04-20 POSITION value:-93.790 upnl:13.340 rpnl:-27.265\n",
      "2016-04-21 TICK WIKI/AAPL open: 106.93 close: 105.97\n",
      "2016-04-21 POSITION value:-93.790 upnl:12.180 rpnl:-27.265\n",
      "2016-04-22 TICK WIKI/AAPL open: 105.01 close: 105.68\n",
      "2016-04-22 POSITION value:-93.790 upnl:11.890 rpnl:-27.265\n",
      "2016-04-25 TICK WIKI/AAPL open: 105.0 close: 105.08\n",
      "2016-04-25 POSITION value:-93.790 upnl:11.290 rpnl:-27.265\n",
      "2016-04-26 TICK WIKI/AAPL open: 103.91 close: 104.35\n",
      "2016-04-26 POSITION value:-93.790 upnl:10.560 rpnl:-27.265\n",
      "2016-04-27 TICK WIKI/AAPL open: 96.0 close: 97.82\n",
      "2016-04-27 POSITION value:-93.790 upnl:4.030 rpnl:-27.265\n",
      "2016-04-28 TICK WIKI/AAPL open: 97.61 close: 94.83\n",
      "2016-04-28 POSITION value:-93.790 upnl:1.040 rpnl:-27.265\n",
      "2016-04-29 TICK WIKI/AAPL open: 93.99 close: 93.74\n",
      "2016-04-29 POSITION value:-93.790 upnl:-0.050 rpnl:-27.265\n",
      "2016-05-02 TICK WIKI/AAPL open: 93.965 close: 93.64\n",
      "2016-05-02 POSITION value:-93.790 upnl:-0.150 rpnl:-27.265\n",
      "2016-05-03 TICK WIKI/AAPL open: 94.2 close: 95.18\n",
      "2016-05-03 POSITION value:-93.790 upnl:1.390 rpnl:-27.265\n",
      "2016-05-04 TICK WIKI/AAPL open: 95.2 close: 94.19\n",
      "2016-05-04 POSITION value:-93.790 upnl:0.400 rpnl:-27.265\n",
      "2016-05-05 TICK WIKI/AAPL open: 94.0 close: 93.24\n",
      "2016-05-05 POSITION value:-93.790 upnl:-0.550 rpnl:-27.265\n",
      "2016-05-06 TICK WIKI/AAPL open: 93.37 close: 92.72\n",
      "2016-05-06 POSITION value:-93.790 upnl:-1.070 rpnl:-27.265\n",
      "2016-05-09 TICK WIKI/AAPL open: 93.0 close: 92.79\n",
      "2016-05-09 POSITION value:-93.790 upnl:-1.000 rpnl:-27.265\n",
      "2016-05-10 TICK WIKI/AAPL open: 93.33 close: 93.42\n",
      "2016-05-10 POSITION value:-93.790 upnl:-0.370 rpnl:-27.265\n",
      "2016-05-11 TICK WIKI/AAPL open: 93.48 close: 92.51\n",
      "2016-05-11 POSITION value:-93.790 upnl:-1.280 rpnl:-27.265\n",
      "2016-05-12 TICK WIKI/AAPL open: 92.72 close: 90.34\n",
      "2016-05-12 POSITION value:-93.790 upnl:-3.450 rpnl:-27.265\n",
      "2016-05-13 TICK WIKI/AAPL open: 90.0 close: 90.52\n",
      "2016-05-13 POSITION value:-93.790 upnl:-3.270 rpnl:-27.265\n",
      "2016-05-16 TICK WIKI/AAPL open: 92.39 close: 93.88\n",
      "2016-05-16 POSITION value:-93.790 upnl:0.090 rpnl:-27.265\n",
      "2016-05-17 TICK WIKI/AAPL open: 94.55 close: 93.49\n",
      "2016-05-17 POSITION value:-93.790 upnl:-0.300 rpnl:-27.265\n",
      "2016-05-18 TICK WIKI/AAPL open: 94.16 close: 94.56\n",
      "2016-05-18 POSITION value:-93.790 upnl:0.770 rpnl:-27.265\n",
      "2016-05-19 TICK WIKI/AAPL open: 94.64 close: 94.2\n",
      "2016-05-19 POSITION value:-93.790 upnl:0.410 rpnl:-27.265\n",
      "2016-05-20 TICK WIKI/AAPL open: 94.64 close: 95.22\n",
      "2016-05-20 POSITION value:-93.790 upnl:1.430 rpnl:-27.265\n",
      "2016-05-23 TICK WIKI/AAPL open: 95.87 close: 96.43\n",
      "2016-05-23 POSITION value:-93.790 upnl:2.640 rpnl:-27.265\n",
      "2016-05-24 TICK WIKI/AAPL open: 97.22 close: 97.9\n",
      "2016-05-24 POSITION value:-93.790 upnl:4.110 rpnl:-27.265\n",
      "2016-05-25 TICK WIKI/AAPL open: 98.67 close: 99.62\n",
      "2016-05-25 POSITION value:-93.790 upnl:5.830 rpnl:-27.265\n",
      "2016-05-26 TICK WIKI/AAPL open: 99.68 close: 100.41\n",
      "2016-05-26 POSITION value:-93.790 upnl:6.620 rpnl:-27.265\n",
      "2016-05-27 TICK WIKI/AAPL open: 99.44 close: 100.35\n",
      "2016-05-27 POSITION value:-93.790 upnl:6.560 rpnl:-27.265\n",
      "2016-05-31 TICK WIKI/AAPL open: 99.6 close: 99.86\n",
      "2016-05-31 POSITION value:-93.790 upnl:6.070 rpnl:-27.265\n",
      "2016-06-01 TICK WIKI/AAPL open: 99.02 close: 98.46\n",
      "2016-06-01 POSITION value:-93.790 upnl:4.670 rpnl:-27.265\n",
      "2016-06-02 TICK WIKI/AAPL open: 97.6 close: 97.72\n",
      "2016-06-02 POSITION value:-93.790 upnl:3.930 rpnl:-27.265\n",
      "2016-06-03 TICK WIKI/AAPL open: 97.79 close: 97.92\n",
      "2016-06-03 POSITION value:-93.790 upnl:4.130 rpnl:-27.265\n",
      "2016-06-06 TICK WIKI/AAPL open: 97.99 close: 98.63\n",
      "2016-06-06 POSITION value:-93.790 upnl:4.840 rpnl:-27.265\n",
      "2016-06-07 TICK WIKI/AAPL open: 99.25 close: 99.03\n",
      "2016-06-07 POSITION value:-93.790 upnl:5.240 rpnl:-27.265\n",
      "2016-06-08 TICK WIKI/AAPL open: 99.02 close: 98.94\n",
      "2016-06-08 POSITION value:-93.790 upnl:5.150 rpnl:-27.265\n",
      "2016-06-09 TICK WIKI/AAPL open: 98.5 close: 99.65\n",
      "2016-06-09 POSITION value:-93.790 upnl:5.860 rpnl:-27.265\n",
      "2016-06-10 TICK WIKI/AAPL open: 98.53 close: 98.83\n",
      "2016-06-10 POSITION value:-93.790 upnl:5.040 rpnl:-27.265\n",
      "2016-06-13 TICK WIKI/AAPL open: 98.69 close: 97.34\n",
      "2016-06-13 POSITION value:-93.790 upnl:3.550 rpnl:-27.265\n",
      "2016-06-14 TICK WIKI/AAPL open: 97.32 close: 97.46\n",
      "2016-06-14 POSITION value:-93.790 upnl:3.670 rpnl:-27.265\n",
      "2016-06-15 TICK WIKI/AAPL open: 97.82 close: 97.14\n",
      "2016-06-15 POSITION value:-93.790 upnl:3.350 rpnl:-27.265\n",
      "2016-06-16 TICK WIKI/AAPL open: 96.45 close: 97.55\n",
      "2016-06-16 POSITION value:-93.790 upnl:3.760 rpnl:-27.265\n",
      "2016-06-17 TICK WIKI/AAPL open: 96.62 close: 95.33\n",
      "2016-06-17 POSITION value:-93.790 upnl:1.540 rpnl:-27.265\n",
      "2016-06-20 TICK WIKI/AAPL open: 96.0 close: 95.1\n",
      "2016-06-20 POSITION value:-93.790 upnl:1.310 rpnl:-27.265\n",
      "2016-06-21 TICK WIKI/AAPL open: 94.94 close: 95.91\n",
      "2016-06-21 POSITION value:-93.790 upnl:2.120 rpnl:-27.265\n",
      "2016-06-22 TICK WIKI/AAPL open: 96.25 close: 95.55\n",
      "2016-06-22 POSITION value:-93.790 upnl:1.760 rpnl:-27.265\n",
      "2016-06-23 TICK WIKI/AAPL open: 95.94 close: 96.1\n",
      "2016-06-23 POSITION value:-93.790 upnl:2.310 rpnl:-27.265\n",
      "2016-06-24 TICK WIKI/AAPL open: 92.91 close: 93.4\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2016-06-24 POSITION value:-93.790 upnl:-0.390 rpnl:-27.265\n",
      "2016-06-27 TICK WIKI/AAPL open: 93.0 close: 92.04\n",
      "2016-06-27 POSITION value:-93.790 upnl:-1.750 rpnl:-27.265\n",
      "2016-06-28 TICK WIKI/AAPL open: 92.9 close: 93.59\n",
      "2016-06-28 POSITION value:-93.790 upnl:-0.200 rpnl:-27.265\n",
      "2016-06-29 TICK WIKI/AAPL open: 93.97 close: 94.4\n",
      "2016-06-29 POSITION value:-93.790 upnl:0.610 rpnl:-27.265\n",
      "2016-06-30 TICK WIKI/AAPL open: 94.44 close: 95.6\n",
      "2016-06-30 POSITION value:-93.790 upnl:1.810 rpnl:-27.265\n",
      "2016-07-01 TICK WIKI/AAPL open: 95.49 close: 95.89\n",
      "2016-07-01 POSITION value:-93.790 upnl:2.100 rpnl:-27.265\n",
      "2016-07-05 TICK WIKI/AAPL open: 95.39 close: 94.99\n",
      "2016-07-05 POSITION value:-93.790 upnl:1.200 rpnl:-27.265\n",
      "2016-07-06 TICK WIKI/AAPL open: 94.6 close: 95.53\n",
      "2016-07-06 POSITION value:-93.790 upnl:1.740 rpnl:-27.265\n",
      "2016-07-07 TICK WIKI/AAPL open: 95.7 close: 95.94\n",
      "2016-07-07 POSITION value:-93.790 upnl:2.150 rpnl:-27.265\n",
      "2016-07-08 TICK WIKI/AAPL open: 96.49 close: 96.68\n",
      "2016-07-08 POSITION value:-93.790 upnl:2.890 rpnl:-27.265\n",
      "2016-07-11 TICK WIKI/AAPL open: 96.75 close: 96.98\n",
      "2016-07-11 POSITION value:-93.790 upnl:3.190 rpnl:-27.265\n",
      "2016-07-12 TICK WIKI/AAPL open: 97.17 close: 97.42\n",
      "2016-07-12 POSITION value:-93.790 upnl:3.630 rpnl:-27.265\n",
      "2016-07-13 TICK WIKI/AAPL open: 97.41 close: 96.87\n",
      "2016-07-13 POSITION value:-93.790 upnl:3.080 rpnl:-27.265\n",
      "2016-07-14 TICK WIKI/AAPL open: 97.39 close: 98.79\n",
      "2016-07-14 POSITION value:-93.790 upnl:5.000 rpnl:-27.265\n",
      "2016-07-15 TICK WIKI/AAPL open: 98.92 close: 98.78\n",
      "2016-07-15 POSITION value:-93.790 upnl:4.990 rpnl:-27.265\n",
      "2016-07-18 TICK WIKI/AAPL open: 98.7 close: 99.83\n",
      "2016-07-18 POSITION value:-93.790 upnl:6.040 rpnl:-27.265\n",
      "2016-07-19 TICK WIKI/AAPL open: 99.56 close: 99.87\n",
      "2016-07-19 POSITION value:-93.790 upnl:6.080 rpnl:-27.265\n",
      "2016-07-20 TICK WIKI/AAPL open: 100.0 close: 99.96\n",
      "2016-07-20 POSITION value:-93.790 upnl:6.170 rpnl:-27.265\n",
      "2016-07-21 TICK WIKI/AAPL open: 99.83 close: 99.43\n",
      "2016-07-21 POSITION value:-93.790 upnl:5.640 rpnl:-27.265\n",
      "2016-07-22 TICK WIKI/AAPL open: 99.26 close: 98.66\n",
      "2016-07-22 POSITION value:-93.790 upnl:4.870 rpnl:-27.265\n",
      "2016-07-25 TICK WIKI/AAPL open: 98.25 close: 97.34\n",
      "2016-07-25 POSITION value:-93.790 upnl:3.550 rpnl:-27.265\n",
      "2016-07-26 TICK WIKI/AAPL open: 96.82 close: 96.67\n",
      "2016-07-26 POSITION value:-93.790 upnl:2.880 rpnl:-27.265\n",
      "2016-07-27 TICK WIKI/AAPL open: 104.265 close: 102.95\n",
      "2016-07-27 SELL signal\n",
      "2016-07-27 ORDER SELL WIKI/AAPL 1\n",
      "2016-07-27 POSITION value:-93.790 upnl:9.160 rpnl:-27.265\n",
      "2016-07-28 TICK WIKI/AAPL open: 102.83 close: 104.34\n",
      "2016-07-28 FILLED SELL 1 WIKI/AAPL at 102.83\n",
      "2016-07-28 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-07-29 TICK WIKI/AAPL open: 104.19 close: 104.21\n",
      "2016-07-29 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-01 TICK WIKI/AAPL open: 104.41 close: 106.05\n",
      "2016-08-01 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-02 TICK WIKI/AAPL open: 106.05 close: 104.48\n",
      "2016-08-02 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-03 TICK WIKI/AAPL open: 104.81 close: 105.79\n",
      "2016-08-03 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-04 TICK WIKI/AAPL open: 105.58 close: 105.87\n",
      "2016-08-04 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-05 TICK WIKI/AAPL open: 106.27 close: 107.48\n",
      "2016-08-05 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-08 TICK WIKI/AAPL open: 107.52 close: 108.37\n",
      "2016-08-08 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-09 TICK WIKI/AAPL open: 108.23 close: 108.81\n",
      "2016-08-09 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-10 TICK WIKI/AAPL open: 108.71 close: 108.0\n",
      "2016-08-10 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-11 TICK WIKI/AAPL open: 108.52 close: 107.93\n",
      "2016-08-11 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-12 TICK WIKI/AAPL open: 107.78 close: 108.18\n",
      "2016-08-12 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-15 TICK WIKI/AAPL open: 108.14 close: 109.48\n",
      "2016-08-15 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-16 TICK WIKI/AAPL open: 109.63 close: 109.38\n",
      "2016-08-16 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-17 TICK WIKI/AAPL open: 109.1 close: 109.22\n",
      "2016-08-17 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-18 TICK WIKI/AAPL open: 109.23 close: 109.08\n",
      "2016-08-18 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-19 TICK WIKI/AAPL open: 108.77 close: 109.36\n",
      "2016-08-19 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-22 TICK WIKI/AAPL open: 108.86 close: 108.51\n",
      "2016-08-22 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-23 TICK WIKI/AAPL open: 108.59 close: 108.85\n",
      "2016-08-23 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-24 TICK WIKI/AAPL open: 108.565 close: 108.03\n",
      "2016-08-24 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-25 TICK WIKI/AAPL open: 107.39 close: 107.57\n",
      "2016-08-25 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-26 TICK WIKI/AAPL open: 107.41 close: 106.94\n",
      "2016-08-26 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-29 TICK WIKI/AAPL open: 106.62 close: 106.82\n",
      "2016-08-29 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-30 TICK WIKI/AAPL open: 105.8 close: 106.0\n",
      "2016-08-30 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-08-31 TICK WIKI/AAPL open: 105.66 close: 106.1\n",
      "2016-08-31 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-09-01 TICK WIKI/AAPL open: 106.14 close: 106.73\n",
      "2016-09-01 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-09-02 TICK WIKI/AAPL open: 107.7 close: 107.73\n",
      "2016-09-02 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-09-06 TICK WIKI/AAPL open: 107.9 close: 107.7\n",
      "2016-09-06 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-09-07 TICK WIKI/AAPL open: 107.83 close: 108.36\n",
      "2016-09-07 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-09-08 TICK WIKI/AAPL open: 107.25 close: 105.52\n",
      "2016-09-08 BUY signal\n",
      "2016-09-08 ORDER BUY WIKI/AAPL 1\n",
      "2016-09-08 POSITION value:0.000 upnl:0.000 rpnl:9.040\n",
      "2016-09-09 TICK WIKI/AAPL open: 104.64 close: 103.13\n",
      "2016-09-09 FILLED BUY 1 WIKI/AAPL at 104.64\n",
      "2016-09-09 POSITION value:-104.640 upnl:-1.510 rpnl:9.040\n",
      "2016-09-12 TICK WIKI/AAPL open: 102.65 close: 105.44\n",
      "2016-09-12 POSITION value:-104.640 upnl:0.800 rpnl:9.040\n",
      "2016-09-13 TICK WIKI/AAPL open: 107.51 close: 107.95\n",
      "2016-09-13 POSITION value:-104.640 upnl:3.310 rpnl:9.040\n",
      "2016-09-14 TICK WIKI/AAPL open: 108.73 close: 111.77\n",
      "2016-09-14 POSITION value:-104.640 upnl:7.130 rpnl:9.040\n",
      "2016-09-15 TICK WIKI/AAPL open: 113.86 close: 115.57\n",
      "2016-09-15 POSITION value:-104.640 upnl:10.930 rpnl:9.040\n",
      "2016-09-16 TICK WIKI/AAPL open: 115.12 close: 114.92\n",
      "2016-09-16 POSITION value:-104.640 upnl:10.280 rpnl:9.040\n",
      "2016-09-19 TICK WIKI/AAPL open: 115.19 close: 113.58\n",
      "2016-09-19 POSITION value:-104.640 upnl:8.940 rpnl:9.040\n",
      "2016-09-20 TICK WIKI/AAPL open: 113.05 close: 113.57\n",
      "2016-09-20 POSITION value:-104.640 upnl:8.930 rpnl:9.040\n",
      "2016-09-21 TICK WIKI/AAPL open: 113.85 close: 113.55\n",
      "2016-09-21 POSITION value:-104.640 upnl:8.910 rpnl:9.040\n",
      "2016-09-22 TICK WIKI/AAPL open: 114.35 close: 114.62\n",
      "2016-09-22 POSITION value:-104.640 upnl:9.980 rpnl:9.040\n",
      "2016-09-23 TICK WIKI/AAPL open: 114.42 close: 112.71\n",
      "2016-09-23 POSITION value:-104.640 upnl:8.070 rpnl:9.040\n",
      "2016-09-26 TICK WIKI/AAPL open: 111.64 close: 112.88\n",
      "2016-09-26 POSITION value:-104.640 upnl:8.240 rpnl:9.040\n",
      "2016-09-27 TICK WIKI/AAPL open: 113.0 close: 113.09\n",
      "2016-09-27 POSITION value:-104.640 upnl:8.450 rpnl:9.040\n",
      "2016-09-28 TICK WIKI/AAPL open: 113.69 close: 113.95\n",
      "2016-09-28 POSITION value:-104.640 upnl:9.310 rpnl:9.040\n",
      "2016-09-29 TICK WIKI/AAPL open: 113.16 close: 112.18\n",
      "2016-09-29 POSITION value:-104.640 upnl:7.540 rpnl:9.040\n",
      "2016-09-30 TICK WIKI/AAPL open: 112.46 close: 113.05\n",
      "2016-09-30 POSITION value:-104.640 upnl:8.410 rpnl:9.040\n",
      "2016-10-03 TICK WIKI/AAPL open: 112.71 close: 112.52\n",
      "2016-10-03 POSITION value:-104.640 upnl:7.880 rpnl:9.040\n",
      "2016-10-04 TICK WIKI/AAPL open: 113.06 close: 113.0\n",
      "2016-10-04 POSITION value:-104.640 upnl:8.360 rpnl:9.040\n",
      "2016-10-05 TICK WIKI/AAPL open: 113.4 close: 113.05\n",
      "2016-10-05 POSITION value:-104.640 upnl:8.410 rpnl:9.040\n",
      "2016-10-06 TICK WIKI/AAPL open: 113.7 close: 113.89\n",
      "2016-10-06 POSITION value:-104.640 upnl:9.250 rpnl:9.040\n",
      "2016-10-07 TICK WIKI/AAPL open: 114.31 close: 114.06\n",
      "2016-10-07 POSITION value:-104.640 upnl:9.420 rpnl:9.040\n",
      "2016-10-10 TICK WIKI/AAPL open: 115.02 close: 116.05\n",
      "2016-10-10 POSITION value:-104.640 upnl:11.410 rpnl:9.040\n",
      "2016-10-11 TICK WIKI/AAPL open: 117.7 close: 116.3\n",
      "2016-10-11 POSITION value:-104.640 upnl:11.660 rpnl:9.040\n",
      "2016-10-12 TICK WIKI/AAPL open: 117.35 close: 117.34\n",
      "2016-10-12 POSITION value:-104.640 upnl:12.700 rpnl:9.040\n",
      "2016-10-13 TICK WIKI/AAPL open: 116.79 close: 116.98\n",
      "2016-10-13 POSITION value:-104.640 upnl:12.340 rpnl:9.040\n",
      "2016-10-14 TICK WIKI/AAPL open: 117.88 close: 117.63\n",
      "2016-10-14 POSITION value:-104.640 upnl:12.990 rpnl:9.040\n",
      "2016-10-17 TICK WIKI/AAPL open: 117.33 close: 117.55\n",
      "2016-10-17 POSITION value:-104.640 upnl:12.910 rpnl:9.040\n",
      "2016-10-18 TICK WIKI/AAPL open: 118.18 close: 117.47\n",
      "2016-10-18 POSITION value:-104.640 upnl:12.830 rpnl:9.040\n",
      "2016-10-19 TICK WIKI/AAPL open: 117.25 close: 117.12\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2016-10-19 POSITION value:-104.640 upnl:12.480 rpnl:9.040\n",
      "2016-10-20 TICK WIKI/AAPL open: 116.86 close: 117.06\n",
      "2016-10-20 POSITION value:-104.640 upnl:12.420 rpnl:9.040\n",
      "2016-10-21 TICK WIKI/AAPL open: 116.81 close: 116.6\n",
      "2016-10-21 POSITION value:-104.640 upnl:11.960 rpnl:9.040\n",
      "2016-10-24 TICK WIKI/AAPL open: 117.1 close: 117.65\n",
      "2016-10-24 POSITION value:-104.640 upnl:13.010 rpnl:9.040\n",
      "2016-10-25 TICK WIKI/AAPL open: 117.95 close: 118.25\n",
      "2016-10-25 POSITION value:-104.640 upnl:13.610 rpnl:9.040\n",
      "2016-10-26 TICK WIKI/AAPL open: 114.31 close: 115.59\n",
      "2016-10-26 POSITION value:-104.640 upnl:10.950 rpnl:9.040\n",
      "2016-10-27 TICK WIKI/AAPL open: 115.39 close: 114.48\n",
      "2016-10-27 POSITION value:-104.640 upnl:9.840 rpnl:9.040\n",
      "2016-10-28 TICK WIKI/AAPL open: 113.87 close: 113.72\n",
      "2016-10-28 POSITION value:-104.640 upnl:9.080 rpnl:9.040\n",
      "2016-10-31 TICK WIKI/AAPL open: 113.65 close: 113.54\n",
      "2016-10-31 POSITION value:-104.640 upnl:8.900 rpnl:9.040\n",
      "2016-11-01 TICK WIKI/AAPL open: 113.46 close: 111.49\n",
      "2016-11-01 POSITION value:-104.640 upnl:6.850 rpnl:9.040\n",
      "2016-11-02 TICK WIKI/AAPL open: 111.4 close: 111.59\n",
      "2016-11-02 POSITION value:-104.640 upnl:6.950 rpnl:9.040\n",
      "2016-11-03 TICK WIKI/AAPL open: 110.98 close: 109.83\n",
      "2016-11-03 POSITION value:-104.640 upnl:5.190 rpnl:9.040\n",
      "2016-11-04 TICK WIKI/AAPL open: 108.53 close: 108.84\n",
      "2016-11-04 POSITION value:-104.640 upnl:4.200 rpnl:9.040\n",
      "2016-11-07 TICK WIKI/AAPL open: 110.08 close: 110.41\n",
      "2016-11-07 POSITION value:-104.640 upnl:5.770 rpnl:9.040\n",
      "2016-11-08 TICK WIKI/AAPL open: 110.31 close: 111.06\n",
      "2016-11-08 POSITION value:-104.640 upnl:6.420 rpnl:9.040\n",
      "2016-11-09 TICK WIKI/AAPL open: 109.88 close: 110.88\n",
      "2016-11-09 POSITION value:-104.640 upnl:6.240 rpnl:9.040\n",
      "2016-11-10 TICK WIKI/AAPL open: 111.09 close: 107.79\n",
      "2016-11-10 POSITION value:-104.640 upnl:3.150 rpnl:9.040\n",
      "2016-11-11 TICK WIKI/AAPL open: 106.92 close: 108.43\n",
      "2016-11-11 POSITION value:-104.640 upnl:3.790 rpnl:9.040\n",
      "2016-11-14 TICK WIKI/AAPL open: 107.32 close: 105.71\n",
      "2016-11-14 POSITION value:-104.640 upnl:1.070 rpnl:9.040\n",
      "2016-11-15 TICK WIKI/AAPL open: 106.57 close: 107.11\n",
      "2016-11-15 POSITION value:-104.640 upnl:2.470 rpnl:9.040\n",
      "2016-11-16 TICK WIKI/AAPL open: 106.7 close: 109.99\n",
      "2016-11-16 POSITION value:-104.640 upnl:5.350 rpnl:9.040\n",
      "2016-11-17 TICK WIKI/AAPL open: 109.81 close: 109.95\n",
      "2016-11-17 POSITION value:-104.640 upnl:5.310 rpnl:9.040\n",
      "2016-11-18 TICK WIKI/AAPL open: 109.72 close: 110.06\n",
      "2016-11-18 POSITION value:-104.640 upnl:5.420 rpnl:9.040\n",
      "2016-11-21 TICK WIKI/AAPL open: 110.12 close: 111.73\n",
      "2016-11-21 POSITION value:-104.640 upnl:7.090 rpnl:9.040\n",
      "2016-11-22 TICK WIKI/AAPL open: 111.95 close: 111.8\n",
      "2016-11-22 POSITION value:-104.640 upnl:7.160 rpnl:9.040\n",
      "2016-11-23 TICK WIKI/AAPL open: 111.36 close: 111.23\n",
      "2016-11-23 POSITION value:-104.640 upnl:6.590 rpnl:9.040\n",
      "2016-11-25 TICK WIKI/AAPL open: 111.13 close: 111.79\n",
      "2016-11-25 POSITION value:-104.640 upnl:7.150 rpnl:9.040\n",
      "2016-11-28 TICK WIKI/AAPL open: 111.43 close: 111.57\n",
      "2016-11-28 POSITION value:-104.640 upnl:6.930 rpnl:9.040\n",
      "2016-11-29 TICK WIKI/AAPL open: 110.78 close: 111.46\n",
      "2016-11-29 POSITION value:-104.640 upnl:6.820 rpnl:9.040\n",
      "2016-11-30 TICK WIKI/AAPL open: 111.56 close: 110.52\n",
      "2016-11-30 POSITION value:-104.640 upnl:5.880 rpnl:9.040\n",
      "2016-12-01 TICK WIKI/AAPL open: 110.365 close: 109.49\n",
      "2016-12-01 POSITION value:-104.640 upnl:4.850 rpnl:9.040\n",
      "2016-12-02 TICK WIKI/AAPL open: 109.17 close: 109.9\n",
      "2016-12-02 POSITION value:-104.640 upnl:5.260 rpnl:9.040\n",
      "2016-12-05 TICK WIKI/AAPL open: 110.0 close: 109.11\n",
      "2016-12-05 POSITION value:-104.640 upnl:4.470 rpnl:9.040\n",
      "2016-12-06 TICK WIKI/AAPL open: 109.5 close: 109.95\n",
      "2016-12-06 POSITION value:-104.640 upnl:5.310 rpnl:9.040\n",
      "2016-12-07 TICK WIKI/AAPL open: 109.26 close: 111.03\n",
      "2016-12-07 POSITION value:-104.640 upnl:6.390 rpnl:9.040\n",
      "2016-12-08 TICK WIKI/AAPL open: 110.86 close: 112.12\n",
      "2016-12-08 POSITION value:-104.640 upnl:7.480 rpnl:9.040\n",
      "2016-12-09 TICK WIKI/AAPL open: 112.31 close: 113.95\n",
      "2016-12-09 POSITION value:-104.640 upnl:9.310 rpnl:9.040\n",
      "2016-12-12 TICK WIKI/AAPL open: 113.29 close: 113.3\n",
      "2016-12-12 POSITION value:-104.640 upnl:8.660 rpnl:9.040\n",
      "2016-12-13 TICK WIKI/AAPL open: 113.84 close: 115.19\n",
      "2016-12-13 POSITION value:-104.640 upnl:10.550 rpnl:9.040\n",
      "2016-12-14 TICK WIKI/AAPL open: 115.04 close: 115.19\n",
      "2016-12-14 POSITION value:-104.640 upnl:10.550 rpnl:9.040\n",
      "2016-12-15 TICK WIKI/AAPL open: 115.38 close: 115.82\n",
      "2016-12-15 POSITION value:-104.640 upnl:11.180 rpnl:9.040\n",
      "2016-12-16 TICK WIKI/AAPL open: 116.47 close: 115.97\n",
      "2016-12-16 POSITION value:-104.640 upnl:11.330 rpnl:9.040\n",
      "2016-12-19 TICK WIKI/AAPL open: 115.8 close: 116.64\n",
      "2016-12-19 POSITION value:-104.640 upnl:12.000 rpnl:9.040\n",
      "2016-12-20 TICK WIKI/AAPL open: 116.74 close: 116.95\n",
      "2016-12-20 POSITION value:-104.640 upnl:12.310 rpnl:9.040\n",
      "2016-12-21 TICK WIKI/AAPL open: 116.8 close: 117.06\n",
      "2016-12-21 POSITION value:-104.640 upnl:12.420 rpnl:9.040\n",
      "2016-12-22 TICK WIKI/AAPL open: 116.35 close: 116.29\n",
      "2016-12-22 POSITION value:-104.640 upnl:11.650 rpnl:9.040\n",
      "2016-12-23 TICK WIKI/AAPL open: 115.59 close: 116.52\n",
      "2016-12-23 POSITION value:-104.640 upnl:11.880 rpnl:9.040\n",
      "2016-12-27 TICK WIKI/AAPL open: 116.52 close: 117.26\n",
      "2016-12-27 POSITION value:-104.640 upnl:12.620 rpnl:9.040\n",
      "2016-12-28 TICK WIKI/AAPL open: 117.52 close: 116.76\n",
      "2016-12-28 POSITION value:-104.640 upnl:12.120 rpnl:9.040\n",
      "2016-12-29 TICK WIKI/AAPL open: 116.45 close: 116.73\n",
      "2016-12-29 POSITION value:-104.640 upnl:12.090 rpnl:9.040\n",
      "2016-12-30 TICK WIKI/AAPL open: 116.65 close: 115.82\n",
      "2016-12-30 POSITION value:-104.640 upnl:11.180 rpnl:9.040\n",
      "2017-01-03 TICK WIKI/AAPL open: 115.8 close: 116.15\n",
      "2017-01-03 POSITION value:-104.640 upnl:11.510 rpnl:9.040\n",
      "2017-01-04 TICK WIKI/AAPL open: 115.85 close: 116.02\n",
      "2017-01-04 POSITION value:-104.640 upnl:11.380 rpnl:9.040\n",
      "2017-01-05 TICK WIKI/AAPL open: 115.92 close: 116.61\n",
      "2017-01-05 POSITION value:-104.640 upnl:11.970 rpnl:9.040\n",
      "2017-01-06 TICK WIKI/AAPL open: 116.78 close: 117.91\n",
      "2017-01-06 POSITION value:-104.640 upnl:13.270 rpnl:9.040\n",
      "2017-01-09 TICK WIKI/AAPL open: 117.95 close: 118.99\n",
      "2017-01-09 POSITION value:-104.640 upnl:14.350 rpnl:9.040\n",
      "2017-01-10 TICK WIKI/AAPL open: 118.77 close: 119.11\n",
      "2017-01-10 POSITION value:-104.640 upnl:14.470 rpnl:9.040\n",
      "2017-01-11 TICK WIKI/AAPL open: 118.74 close: 119.75\n",
      "2017-01-11 POSITION value:-104.640 upnl:15.110 rpnl:9.040\n",
      "2017-01-12 TICK WIKI/AAPL open: 118.895 close: 119.25\n",
      "2017-01-12 POSITION value:-104.640 upnl:14.610 rpnl:9.040\n",
      "2017-01-13 TICK WIKI/AAPL open: 119.11 close: 119.04\n",
      "2017-01-13 POSITION value:-104.640 upnl:14.400 rpnl:9.040\n",
      "2017-01-17 TICK WIKI/AAPL open: 118.34 close: 120.0\n",
      "2017-01-17 POSITION value:-104.640 upnl:15.360 rpnl:9.040\n",
      "2017-01-18 TICK WIKI/AAPL open: 120.0 close: 119.99\n",
      "2017-01-18 POSITION value:-104.640 upnl:15.350 rpnl:9.040\n",
      "2017-01-19 TICK WIKI/AAPL open: 119.4 close: 119.78\n",
      "2017-01-19 POSITION value:-104.640 upnl:15.140 rpnl:9.040\n",
      "2017-01-20 TICK WIKI/AAPL open: 120.45 close: 120.0\n",
      "2017-01-20 POSITION value:-104.640 upnl:15.360 rpnl:9.040\n",
      "2017-01-23 TICK WIKI/AAPL open: 120.0 close: 120.08\n",
      "2017-01-23 POSITION value:-104.640 upnl:15.440 rpnl:9.040\n",
      "2017-01-24 TICK WIKI/AAPL open: 119.55 close: 119.97\n",
      "2017-01-24 POSITION value:-104.640 upnl:15.330 rpnl:9.040\n",
      "2017-01-25 TICK WIKI/AAPL open: 120.42 close: 121.88\n",
      "2017-01-25 POSITION value:-104.640 upnl:17.240 rpnl:9.040\n",
      "2017-01-26 TICK WIKI/AAPL open: 121.67 close: 121.94\n",
      "2017-01-26 POSITION value:-104.640 upnl:17.300 rpnl:9.040\n",
      "2017-01-27 TICK WIKI/AAPL open: 122.14 close: 121.95\n",
      "2017-01-27 POSITION value:-104.640 upnl:17.310 rpnl:9.040\n",
      "2017-01-30 TICK WIKI/AAPL open: 120.93 close: 121.63\n",
      "2017-01-30 POSITION value:-104.640 upnl:16.990 rpnl:9.040\n",
      "2017-01-31 TICK WIKI/AAPL open: 121.15 close: 121.35\n",
      "2017-01-31 POSITION value:-104.640 upnl:16.710 rpnl:9.040\n",
      "2017-02-01 TICK WIKI/AAPL open: 127.03 close: 128.75\n",
      "2017-02-01 SELL signal\n",
      "2017-02-01 ORDER SELL WIKI/AAPL 1\n",
      "2017-02-01 POSITION value:-104.640 upnl:24.110 rpnl:9.040\n",
      "2017-02-02 TICK WIKI/AAPL open: 127.975 close: 128.53\n",
      "2017-02-02 FILLED SELL 1 WIKI/AAPL at 127.975\n",
      "2017-02-02 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-03 TICK WIKI/AAPL open: 128.31 close: 129.08\n",
      "2017-02-03 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-06 TICK WIKI/AAPL open: 129.13 close: 130.29\n",
      "2017-02-06 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-07 TICK WIKI/AAPL open: 130.54 close: 131.53\n",
      "2017-02-07 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-08 TICK WIKI/AAPL open: 131.35 close: 132.04\n",
      "2017-02-08 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-09 TICK WIKI/AAPL open: 131.65 close: 132.42\n",
      "2017-02-09 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-10 TICK WIKI/AAPL open: 132.46 close: 132.12\n",
      "2017-02-10 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-13 TICK WIKI/AAPL open: 133.08 close: 133.29\n",
      "2017-02-13 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-14 TICK WIKI/AAPL open: 133.47 close: 135.02\n",
      "2017-02-14 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-15 TICK WIKI/AAPL open: 135.52 close: 135.51\n",
      "2017-02-15 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-16 TICK WIKI/AAPL open: 135.67 close: 135.345\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2017-02-16 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-17 TICK WIKI/AAPL open: 135.1 close: 135.72\n",
      "2017-02-17 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-21 TICK WIKI/AAPL open: 136.23 close: 136.7\n",
      "2017-02-21 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-22 TICK WIKI/AAPL open: 136.43 close: 137.11\n",
      "2017-02-22 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-23 TICK WIKI/AAPL open: 137.38 close: 136.53\n",
      "2017-02-23 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-24 TICK WIKI/AAPL open: 135.91 close: 136.66\n",
      "2017-02-24 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-27 TICK WIKI/AAPL open: 137.14 close: 136.93\n",
      "2017-02-27 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-02-28 TICK WIKI/AAPL open: 137.08 close: 136.99\n",
      "2017-02-28 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-03-01 TICK WIKI/AAPL open: 137.89 close: 139.79\n",
      "2017-03-01 SELL signal\n",
      "2017-03-01 ORDER SELL WIKI/AAPL 1\n",
      "2017-03-01 POSITION value:0.000 upnl:0.000 rpnl:23.335\n",
      "2017-03-02 TICK WIKI/AAPL open: 140.0 close: 138.96\n",
      "2017-03-02 FILLED SELL 1 WIKI/AAPL at 140.0\n",
      "2017-03-02 BUY signal\n",
      "2017-03-02 ORDER BUY WIKI/AAPL 1\n",
      "2017-03-02 POSITION value:140.000 upnl:1.040 rpnl:23.335\n",
      "2017-03-03 TICK WIKI/AAPL open: 138.78 close: 139.78\n",
      "2017-03-03 FILLED BUY 1 WIKI/AAPL at 138.78\n",
      "2017-03-03 POSITION value:0.000 upnl:0.000 rpnl:1.220\n",
      "2017-03-06 TICK WIKI/AAPL open: 139.365 close: 139.34\n",
      "2017-03-06 POSITION value:0.000 upnl:0.000 rpnl:1.220\n",
      "2017-03-07 TICK WIKI/AAPL open: 139.06 close: 139.52\n",
      "2017-03-07 POSITION value:0.000 upnl:0.000 rpnl:1.220\n",
      "2017-03-08 TICK WIKI/AAPL open: 138.95 close: 139.0\n",
      "2017-03-08 POSITION value:0.000 upnl:0.000 rpnl:1.220\n",
      "2017-03-09 TICK WIKI/AAPL open: 138.74 close: 138.68\n",
      "2017-03-09 POSITION value:0.000 upnl:0.000 rpnl:1.220\n",
      "2017-03-10 TICK WIKI/AAPL open: 139.25 close: 139.14\n",
      "2017-03-10 POSITION value:0.000 upnl:0.000 rpnl:1.220\n",
      "2017-03-13 TICK WIKI/AAPL open: 138.85 close: 139.2\n",
      "2017-03-13 POSITION value:0.000 upnl:0.000 rpnl:1.220\n",
      "2017-03-14 TICK WIKI/AAPL open: 139.3 close: 138.99\n",
      "2017-03-14 POSITION value:0.000 upnl:0.000 rpnl:1.220\n",
      "2017-03-15 TICK WIKI/AAPL open: 139.41 close: 140.46\n",
      "2017-03-15 POSITION value:0.000 upnl:0.000 rpnl:1.220\n",
      "2017-03-16 TICK WIKI/AAPL open: 140.72 close: 140.69\n",
      "2017-03-16 POSITION value:0.000 upnl:0.000 rpnl:1.220\n",
      "2017-03-17 TICK WIKI/AAPL open: 141.0 close: 139.99\n",
      "2017-03-17 POSITION value:0.000 upnl:0.000 rpnl:1.220\n",
      "2017-03-20 TICK WIKI/AAPL open: 140.4 close: 141.46\n",
      "2017-03-20 POSITION value:0.000 upnl:0.000 rpnl:1.220\n",
      "2017-03-21 TICK WIKI/AAPL open: 142.11 close: 139.84\n",
      "2017-03-21 BUY signal\n",
      "2017-03-21 ORDER BUY WIKI/AAPL 1\n",
      "2017-03-21 POSITION value:0.000 upnl:0.000 rpnl:1.220\n",
      "2017-03-22 TICK WIKI/AAPL open: 139.845 close: 141.42\n",
      "2017-03-22 FILLED BUY 1 WIKI/AAPL at 139.845\n",
      "2017-03-22 POSITION value:-139.845 upnl:1.575 rpnl:1.220\n",
      "2017-03-23 TICK WIKI/AAPL open: 141.26 close: 140.92\n",
      "2017-03-23 POSITION value:-139.845 upnl:1.075 rpnl:1.220\n",
      "2017-03-24 TICK WIKI/AAPL open: 141.5 close: 140.64\n",
      "2017-03-24 POSITION value:-139.845 upnl:0.795 rpnl:1.220\n",
      "2017-03-27 TICK WIKI/AAPL open: 139.39 close: 140.88\n",
      "2017-03-27 POSITION value:-139.845 upnl:1.035 rpnl:1.220\n",
      "2017-03-28 TICK WIKI/AAPL open: 140.91 close: 143.8\n",
      "2017-03-28 SELL signal\n",
      "2017-03-28 ORDER SELL WIKI/AAPL 1\n",
      "2017-03-28 POSITION value:-139.845 upnl:3.955 rpnl:1.220\n",
      "2017-03-29 TICK WIKI/AAPL open: 143.68 close: 144.12\n",
      "2017-03-29 FILLED SELL 1 WIKI/AAPL at 143.68\n",
      "2017-03-29 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-03-30 TICK WIKI/AAPL open: 144.19 close: 143.93\n",
      "2017-03-30 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-03-31 TICK WIKI/AAPL open: 143.72 close: 143.66\n",
      "2017-03-31 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-03 TICK WIKI/AAPL open: 143.71 close: 143.7\n",
      "2017-04-03 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-04 TICK WIKI/AAPL open: 143.25 close: 144.77\n",
      "2017-04-04 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-05 TICK WIKI/AAPL open: 144.22 close: 144.02\n",
      "2017-04-05 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-06 TICK WIKI/AAPL open: 144.29 close: 143.66\n",
      "2017-04-06 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-07 TICK WIKI/AAPL open: 143.73 close: 143.34\n",
      "2017-04-07 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-10 TICK WIKI/AAPL open: 143.6 close: 143.17\n",
      "2017-04-10 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-11 TICK WIKI/AAPL open: 142.94 close: 141.63\n",
      "2017-04-11 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-12 TICK WIKI/AAPL open: 141.6 close: 141.8\n",
      "2017-04-12 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-13 TICK WIKI/AAPL open: 141.91 close: 141.05\n",
      "2017-04-13 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-17 TICK WIKI/AAPL open: 141.48 close: 141.83\n",
      "2017-04-17 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-18 TICK WIKI/AAPL open: 141.41 close: 141.2\n",
      "2017-04-18 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-19 TICK WIKI/AAPL open: 141.88 close: 140.68\n",
      "2017-04-19 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-20 TICK WIKI/AAPL open: 141.22 close: 142.44\n",
      "2017-04-20 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-21 TICK WIKI/AAPL open: 142.44 close: 142.27\n",
      "2017-04-21 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-24 TICK WIKI/AAPL open: 143.5 close: 143.64\n",
      "2017-04-24 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-25 TICK WIKI/AAPL open: 143.91 close: 144.54\n",
      "2017-04-25 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-26 TICK WIKI/AAPL open: 144.47 close: 143.6508\n",
      "2017-04-26 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-27 TICK WIKI/AAPL open: 143.9225 close: 143.79\n",
      "2017-04-27 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-04-28 TICK WIKI/AAPL open: 144.09 close: 143.65\n",
      "2017-04-28 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-05-01 TICK WIKI/AAPL open: 145.1 close: 146.6\n",
      "2017-05-01 SELL signal\n",
      "2017-05-01 ORDER SELL WIKI/AAPL 1\n",
      "2017-05-01 POSITION value:0.000 upnl:0.000 rpnl:3.835\n",
      "2017-05-02 TICK WIKI/AAPL open: 147.54 close: 147.51\n",
      "2017-05-02 FILLED SELL 1 WIKI/AAPL at 147.54\n",
      "2017-05-02 POSITION value:147.540 upnl:0.030 rpnl:3.835\n",
      "2017-05-03 TICK WIKI/AAPL open: 145.59 close: 147.06\n",
      "2017-05-03 POSITION value:147.540 upnl:0.480 rpnl:3.835\n",
      "2017-05-04 TICK WIKI/AAPL open: 146.52 close: 146.53\n",
      "2017-05-04 POSITION value:147.540 upnl:1.010 rpnl:3.835\n",
      "2017-05-05 TICK WIKI/AAPL open: 146.76 close: 148.96\n",
      "2017-05-05 POSITION value:147.540 upnl:-1.420 rpnl:3.835\n",
      "2017-05-08 TICK WIKI/AAPL open: 149.03 close: 153.0\n",
      "2017-05-08 POSITION value:147.540 upnl:-5.460 rpnl:3.835\n",
      "2017-05-09 TICK WIKI/AAPL open: 153.87 close: 153.96\n",
      "2017-05-09 POSITION value:147.540 upnl:-6.420 rpnl:3.835\n",
      "2017-05-10 TICK WIKI/AAPL open: 153.63 close: 153.26\n",
      "2017-05-10 POSITION value:147.540 upnl:-5.720 rpnl:3.835\n",
      "2017-05-11 TICK WIKI/AAPL open: 152.45 close: 153.95\n",
      "2017-05-11 POSITION value:147.540 upnl:-6.410 rpnl:3.835\n",
      "2017-05-12 TICK WIKI/AAPL open: 154.7 close: 156.1\n",
      "2017-05-12 POSITION value:147.540 upnl:-8.560 rpnl:3.835\n",
      "2017-05-15 TICK WIKI/AAPL open: 156.01 close: 155.7\n",
      "2017-05-15 POSITION value:147.540 upnl:-8.160 rpnl:3.835\n",
      "2017-05-16 TICK WIKI/AAPL open: 155.94 close: 155.47\n",
      "2017-05-16 POSITION value:147.540 upnl:-7.930 rpnl:3.835\n",
      "2017-05-17 TICK WIKI/AAPL open: 153.6 close: 150.25\n",
      "2017-05-17 BUY signal\n",
      "2017-05-17 ORDER BUY WIKI/AAPL 1\n",
      "2017-05-17 POSITION value:147.540 upnl:-2.710 rpnl:3.835\n",
      "2017-05-18 TICK WIKI/AAPL open: 151.27 close: 152.54\n",
      "2017-05-18 FILLED BUY 1 WIKI/AAPL at 151.27\n",
      "2017-05-18 POSITION value:0.000 upnl:0.000 rpnl:-3.730\n",
      "2017-05-19 TICK WIKI/AAPL open: 153.38 close: 152.96\n",
      "2017-05-19 POSITION value:0.000 upnl:0.000 rpnl:-3.730\n",
      "2017-05-22 TICK WIKI/AAPL open: 154.0 close: 153.99\n",
      "2017-05-22 POSITION value:0.000 upnl:0.000 rpnl:-3.730\n",
      "2017-05-23 TICK WIKI/AAPL open: 154.9 close: 153.8\n",
      "2017-05-23 POSITION value:0.000 upnl:0.000 rpnl:-3.730\n",
      "2017-05-24 TICK WIKI/AAPL open: 153.84 close: 153.34\n",
      "2017-05-24 POSITION value:0.000 upnl:0.000 rpnl:-3.730\n",
      "2017-05-25 TICK WIKI/AAPL open: 153.73 close: 153.87\n",
      "2017-05-25 POSITION value:0.000 upnl:0.000 rpnl:-3.730\n",
      "2017-05-26 TICK WIKI/AAPL open: 154.0 close: 153.61\n",
      "2017-05-26 POSITION value:0.000 upnl:0.000 rpnl:-3.730\n",
      "2017-05-30 TICK WIKI/AAPL open: 153.42 close: 153.67\n",
      "2017-05-30 POSITION value:0.000 upnl:0.000 rpnl:-3.730\n",
      "2017-05-31 TICK WIKI/AAPL open: 153.97 close: 152.76\n",
      "2017-05-31 POSITION value:0.000 upnl:0.000 rpnl:-3.730\n",
      "2017-06-01 TICK WIKI/AAPL open: 153.17 close: 153.18\n",
      "2017-06-01 POSITION value:0.000 upnl:0.000 rpnl:-3.730\n",
      "2017-06-02 TICK WIKI/AAPL open: 153.58 close: 155.45\n",
      "2017-06-02 POSITION value:0.000 upnl:0.000 rpnl:-3.730\n",
      "2017-06-05 TICK WIKI/AAPL open: 154.34 close: 153.93\n",
      "2017-06-05 POSITION value:0.000 upnl:0.000 rpnl:-3.730\n",
      "2017-06-06 TICK WIKI/AAPL open: 153.9 close: 154.45\n",
      "2017-06-06 POSITION value:0.000 upnl:0.000 rpnl:-3.730\n",
      "2017-06-07 TICK WIKI/AAPL open: 155.02 close: 155.37\n",
      "2017-06-07 POSITION value:0.000 upnl:0.000 rpnl:-3.730\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2017-06-08 TICK WIKI/AAPL open: 155.25 close: 154.99\n",
      "2017-06-08 POSITION value:0.000 upnl:0.000 rpnl:-3.730\n",
      "2017-06-09 TICK WIKI/AAPL open: 155.19 close: 148.98\n",
      "2017-06-09 BUY signal\n",
      "2017-06-09 ORDER BUY WIKI/AAPL 1\n",
      "2017-06-09 POSITION value:0.000 upnl:0.000 rpnl:-3.730\n",
      "2017-06-12 TICK WIKI/AAPL open: 145.74 close: 145.32\n",
      "2017-06-12 FILLED BUY 1 WIKI/AAPL at 145.74\n",
      "2017-06-12 POSITION value:-145.740 upnl:-0.420 rpnl:-3.730\n",
      "2017-06-13 TICK WIKI/AAPL open: 147.16 close: 146.59\n",
      "2017-06-13 POSITION value:-145.740 upnl:0.850 rpnl:-3.730\n",
      "2017-06-14 TICK WIKI/AAPL open: 147.5 close: 145.16\n",
      "2017-06-14 POSITION value:-145.740 upnl:-0.580 rpnl:-3.730\n",
      "2017-06-15 TICK WIKI/AAPL open: 143.32 close: 144.29\n",
      "2017-06-15 POSITION value:-145.740 upnl:-1.450 rpnl:-3.730\n",
      "2017-06-16 TICK WIKI/AAPL open: 143.78 close: 142.27\n",
      "2017-06-16 POSITION value:-145.740 upnl:-3.470 rpnl:-3.730\n",
      "2017-06-19 TICK WIKI/AAPL open: 143.66 close: 146.34\n",
      "2017-06-19 POSITION value:-145.740 upnl:0.600 rpnl:-3.730\n",
      "2017-06-20 TICK WIKI/AAPL open: 146.87 close: 145.01\n",
      "2017-06-20 POSITION value:-145.740 upnl:-0.730 rpnl:-3.730\n",
      "2017-06-21 TICK WIKI/AAPL open: 145.52 close: 145.87\n",
      "2017-06-21 POSITION value:-145.740 upnl:0.130 rpnl:-3.730\n",
      "2017-06-22 TICK WIKI/AAPL open: 145.77 close: 145.63\n",
      "2017-06-22 POSITION value:-145.740 upnl:-0.110 rpnl:-3.730\n",
      "2017-06-23 TICK WIKI/AAPL open: 145.13 close: 146.35\n",
      "2017-06-23 POSITION value:-145.740 upnl:0.610 rpnl:-3.730\n",
      "2017-06-26 TICK WIKI/AAPL open: 147.17 close: 145.82\n",
      "2017-06-26 POSITION value:-145.740 upnl:0.080 rpnl:-3.730\n",
      "2017-06-27 TICK WIKI/AAPL open: 145.01 close: 143.74\n",
      "2017-06-27 POSITION value:-145.740 upnl:-2.000 rpnl:-3.730\n",
      "2017-06-28 TICK WIKI/AAPL open: 144.49 close: 145.83\n",
      "2017-06-28 POSITION value:-145.740 upnl:0.090 rpnl:-3.730\n",
      "2017-06-29 TICK WIKI/AAPL open: 144.71 close: 143.68\n",
      "2017-06-29 POSITION value:-145.740 upnl:-2.060 rpnl:-3.730\n",
      "2017-06-30 TICK WIKI/AAPL open: 144.45 close: 144.02\n",
      "2017-06-30 POSITION value:-145.740 upnl:-1.720 rpnl:-3.730\n",
      "2017-07-03 TICK WIKI/AAPL open: 144.88 close: 143.5\n",
      "2017-07-03 POSITION value:-145.740 upnl:-2.240 rpnl:-3.730\n",
      "2017-07-05 TICK WIKI/AAPL open: 143.69 close: 144.09\n",
      "2017-07-05 POSITION value:-145.740 upnl:-1.650 rpnl:-3.730\n",
      "2017-07-06 TICK WIKI/AAPL open: 143.02 close: 142.73\n",
      "2017-07-06 POSITION value:-145.740 upnl:-3.010 rpnl:-3.730\n",
      "2017-07-07 TICK WIKI/AAPL open: 142.9 close: 144.18\n",
      "2017-07-07 POSITION value:-145.740 upnl:-1.560 rpnl:-3.730\n",
      "2017-07-10 TICK WIKI/AAPL open: 144.11 close: 145.06\n",
      "2017-07-10 POSITION value:-145.740 upnl:-0.680 rpnl:-3.730\n",
      "2017-07-11 TICK WIKI/AAPL open: 144.73 close: 145.53\n",
      "2017-07-11 POSITION value:-145.740 upnl:-0.210 rpnl:-3.730\n",
      "2017-07-12 TICK WIKI/AAPL open: 145.87 close: 145.74\n",
      "2017-07-12 POSITION value:-145.740 upnl:0.000 rpnl:-3.730\n",
      "2017-07-13 TICK WIKI/AAPL open: 145.5 close: 147.77\n",
      "2017-07-13 POSITION value:-145.740 upnl:2.030 rpnl:-3.730\n",
      "2017-07-14 TICK WIKI/AAPL open: 147.97 close: 149.04\n",
      "2017-07-14 POSITION value:-145.740 upnl:3.300 rpnl:-3.730\n",
      "2017-07-17 TICK WIKI/AAPL open: 148.82 close: 149.56\n",
      "2017-07-17 POSITION value:-145.740 upnl:3.820 rpnl:-3.730\n",
      "2017-07-18 TICK WIKI/AAPL open: 149.2 close: 150.08\n",
      "2017-07-18 POSITION value:-145.740 upnl:4.340 rpnl:-3.730\n",
      "2017-07-19 TICK WIKI/AAPL open: 150.48 close: 151.02\n",
      "2017-07-19 POSITION value:-145.740 upnl:5.280 rpnl:-3.730\n",
      "2017-07-20 TICK WIKI/AAPL open: 151.5 close: 150.34\n",
      "2017-07-20 POSITION value:-145.740 upnl:4.600 rpnl:-3.730\n",
      "2017-07-21 TICK WIKI/AAPL open: 149.99 close: 150.27\n",
      "2017-07-21 POSITION value:-145.740 upnl:4.530 rpnl:-3.730\n",
      "2017-07-24 TICK WIKI/AAPL open: 150.58 close: 152.09\n",
      "2017-07-24 POSITION value:-145.740 upnl:6.350 rpnl:-3.730\n",
      "2017-07-25 TICK WIKI/AAPL open: 151.8 close: 152.74\n",
      "2017-07-25 POSITION value:-145.740 upnl:7.000 rpnl:-3.730\n",
      "2017-07-26 TICK WIKI/AAPL open: 153.35 close: 153.46\n",
      "2017-07-26 POSITION value:-145.740 upnl:7.720 rpnl:-3.730\n",
      "2017-07-27 TICK WIKI/AAPL open: 153.75 close: 150.56\n",
      "2017-07-27 POSITION value:-145.740 upnl:4.820 rpnl:-3.730\n",
      "2017-07-28 TICK WIKI/AAPL open: 149.89 close: 149.5\n",
      "2017-07-28 POSITION value:-145.740 upnl:3.760 rpnl:-3.730\n",
      "2017-07-31 TICK WIKI/AAPL open: 149.9 close: 148.85\n",
      "2017-07-31 POSITION value:-145.740 upnl:3.110 rpnl:-3.730\n",
      "2017-08-01 TICK WIKI/AAPL open: 149.1 close: 150.05\n",
      "2017-08-01 POSITION value:-145.740 upnl:4.310 rpnl:-3.730\n",
      "2017-08-02 TICK WIKI/AAPL open: 159.28 close: 157.14\n",
      "2017-08-02 SELL signal\n",
      "2017-08-02 ORDER SELL WIKI/AAPL 1\n",
      "2017-08-02 POSITION value:-145.740 upnl:11.400 rpnl:-3.730\n",
      "2017-08-03 TICK WIKI/AAPL open: 157.05 close: 155.57\n",
      "2017-08-03 FILLED SELL 1 WIKI/AAPL at 157.05\n",
      "2017-08-03 POSITION value:0.000 upnl:0.000 rpnl:11.310\n",
      "2017-08-04 TICK WIKI/AAPL open: 156.07 close: 156.39\n",
      "2017-08-04 POSITION value:0.000 upnl:0.000 rpnl:11.310\n",
      "2017-08-08 TICK WIKI/AAPL open: 158.6 close: 160.08\n",
      "2017-08-08 POSITION value:0.000 upnl:0.000 rpnl:11.310\n",
      "2017-08-09 TICK WIKI/AAPL open: 159.26 close: 161.06\n",
      "2017-08-09 POSITION value:0.000 upnl:0.000 rpnl:11.310\n",
      "2017-08-10 TICK WIKI/AAPL open: 159.9 close: 155.27\n",
      "2017-08-10 BUY signal\n",
      "2017-08-10 ORDER BUY WIKI/AAPL 1\n",
      "2017-08-10 POSITION value:0.000 upnl:0.000 rpnl:11.310\n",
      "2017-08-11 TICK WIKI/AAPL open: 156.6 close: 157.48\n",
      "2017-08-11 FILLED BUY 1 WIKI/AAPL at 156.6\n",
      "2017-08-11 POSITION value:-156.600 upnl:0.880 rpnl:11.310\n",
      "2017-08-14 TICK WIKI/AAPL open: 159.32 close: 159.85\n",
      "2017-08-14 POSITION value:-156.600 upnl:3.250 rpnl:11.310\n",
      "2017-08-15 TICK WIKI/AAPL open: 160.66 close: 161.6\n",
      "2017-08-15 POSITION value:-156.600 upnl:5.000 rpnl:11.310\n",
      "2017-08-16 TICK WIKI/AAPL open: 161.94 close: 160.95\n",
      "2017-08-16 POSITION value:-156.600 upnl:4.350 rpnl:11.310\n",
      "2017-08-17 TICK WIKI/AAPL open: 160.52 close: 157.87\n",
      "2017-08-17 POSITION value:-156.600 upnl:1.270 rpnl:11.310\n",
      "2017-08-18 TICK WIKI/AAPL open: 157.86 close: 157.5\n",
      "2017-08-18 POSITION value:-156.600 upnl:0.900 rpnl:11.310\n",
      "2017-08-21 TICK WIKI/AAPL open: 157.5 close: 157.21\n",
      "2017-08-21 POSITION value:-156.600 upnl:0.610 rpnl:11.310\n",
      "2017-08-22 TICK WIKI/AAPL open: 158.23 close: 159.78\n",
      "2017-08-22 POSITION value:-156.600 upnl:3.180 rpnl:11.310\n",
      "2017-08-23 TICK WIKI/AAPL open: 159.07 close: 159.98\n",
      "2017-08-23 POSITION value:-156.600 upnl:3.380 rpnl:11.310\n",
      "2017-08-24 TICK WIKI/AAPL open: 160.43 close: 159.27\n",
      "2017-08-24 POSITION value:-156.600 upnl:2.670 rpnl:11.310\n",
      "2017-08-25 TICK WIKI/AAPL open: 159.65 close: 159.86\n",
      "2017-08-25 POSITION value:-156.600 upnl:3.260 rpnl:11.310\n",
      "2017-08-28 TICK WIKI/AAPL open: 160.14 close: 161.47\n",
      "2017-08-28 POSITION value:-156.600 upnl:4.870 rpnl:11.310\n",
      "2017-08-29 TICK WIKI/AAPL open: 160.1 close: 162.91\n",
      "2017-08-29 POSITION value:-156.600 upnl:6.310 rpnl:11.310\n",
      "2017-08-30 TICK WIKI/AAPL open: 163.8 close: 163.35\n",
      "2017-08-30 POSITION value:-156.600 upnl:6.750 rpnl:11.310\n",
      "2017-08-31 TICK WIKI/AAPL open: 163.64 close: 164.0\n",
      "2017-08-31 POSITION value:-156.600 upnl:7.400 rpnl:11.310\n",
      "2017-09-01 TICK WIKI/AAPL open: 164.8 close: 164.05\n",
      "2017-09-01 POSITION value:-156.600 upnl:7.450 rpnl:11.310\n",
      "2017-09-05 TICK WIKI/AAPL open: 163.75 close: 162.08\n",
      "2017-09-05 POSITION value:-156.600 upnl:5.480 rpnl:11.310\n",
      "2017-09-06 TICK WIKI/AAPL open: 162.71 close: 161.91\n",
      "2017-09-06 POSITION value:-156.600 upnl:5.310 rpnl:11.310\n",
      "2017-09-07 TICK WIKI/AAPL open: 162.09 close: 161.26\n",
      "2017-09-07 POSITION value:-156.600 upnl:4.660 rpnl:11.310\n",
      "2017-09-08 TICK WIKI/AAPL open: 160.86 close: 158.63\n",
      "2017-09-08 POSITION value:-156.600 upnl:2.030 rpnl:11.310\n",
      "2017-09-11 TICK WIKI/AAPL open: 160.5 close: 161.5\n",
      "2017-09-11 POSITION value:-156.600 upnl:4.900 rpnl:11.310\n",
      "2017-09-12 TICK WIKI/AAPL open: 162.61 close: 160.82\n",
      "2017-09-12 POSITION value:-156.600 upnl:4.220 rpnl:11.310\n",
      "2017-09-13 TICK WIKI/AAPL open: 159.87 close: 159.65\n",
      "2017-09-13 POSITION value:-156.600 upnl:3.050 rpnl:11.310\n",
      "2017-09-14 TICK WIKI/AAPL open: 158.99 close: 158.28\n",
      "2017-09-14 POSITION value:-156.600 upnl:1.680 rpnl:11.310\n",
      "2017-09-15 TICK WIKI/AAPL open: 158.47 close: 159.88\n",
      "2017-09-15 POSITION value:-156.600 upnl:3.280 rpnl:11.310\n",
      "2017-09-18 TICK WIKI/AAPL open: 160.11 close: 158.67\n",
      "2017-09-18 POSITION value:-156.600 upnl:2.070 rpnl:11.310\n",
      "2017-09-19 TICK WIKI/AAPL open: 159.51 close: 158.73\n",
      "2017-09-19 POSITION value:-156.600 upnl:2.130 rpnl:11.310\n",
      "2017-09-20 TICK WIKI/AAPL open: 157.9 close: 156.07\n",
      "2017-09-20 POSITION value:-156.600 upnl:-0.530 rpnl:11.310\n",
      "2017-09-21 TICK WIKI/AAPL open: 155.8 close: 153.39\n",
      "2017-09-21 POSITION value:-156.600 upnl:-3.210 rpnl:11.310\n",
      "2017-09-22 TICK WIKI/AAPL open: 152.02 close: 151.89\n",
      "2017-09-22 POSITION value:-156.600 upnl:-4.710 rpnl:11.310\n",
      "2017-09-25 TICK WIKI/AAPL open: 149.99 close: 150.55\n",
      "2017-09-25 POSITION value:-156.600 upnl:-6.050 rpnl:11.310\n",
      "2017-09-26 TICK WIKI/AAPL open: 151.78 close: 153.14\n",
      "2017-09-26 POSITION value:-156.600 upnl:-3.460 rpnl:11.310\n",
      "2017-09-27 TICK WIKI/AAPL open: 153.8 close: 154.23\n",
      "2017-09-27 POSITION value:-156.600 upnl:-2.370 rpnl:11.310\n",
      "2017-09-28 TICK WIKI/AAPL open: 153.89 close: 153.28\n",
      "2017-09-28 POSITION value:-156.600 upnl:-3.320 rpnl:11.310\n",
      "2017-09-29 TICK WIKI/AAPL open: 153.21 close: 154.12\n",
      "2017-09-29 POSITION value:-156.600 upnl:-2.480 rpnl:11.310\n",
      "2017-10-02 TICK WIKI/AAPL open: 154.26 close: 153.81\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2017-10-02 POSITION value:-156.600 upnl:-2.790 rpnl:11.310\n",
      "2017-10-03 TICK WIKI/AAPL open: 154.01 close: 154.48\n",
      "2017-10-03 POSITION value:-156.600 upnl:-2.120 rpnl:11.310\n",
      "2017-10-04 TICK WIKI/AAPL open: 153.63 close: 153.4508\n",
      "2017-10-04 POSITION value:-156.600 upnl:-3.149 rpnl:11.310\n",
      "2017-10-05 TICK WIKI/AAPL open: 154.18 close: 155.39\n",
      "2017-10-05 POSITION value:-156.600 upnl:-1.210 rpnl:11.310\n",
      "2017-10-06 TICK WIKI/AAPL open: 154.97 close: 155.3\n",
      "2017-10-06 POSITION value:-156.600 upnl:-1.300 rpnl:11.310\n",
      "2017-10-09 TICK WIKI/AAPL open: 155.81 close: 155.84\n",
      "2017-10-09 POSITION value:-156.600 upnl:-0.760 rpnl:11.310\n",
      "2017-10-10 TICK WIKI/AAPL open: 156.055 close: 155.9\n",
      "2017-10-10 POSITION value:-156.600 upnl:-0.700 rpnl:11.310\n",
      "2017-10-11 TICK WIKI/AAPL open: 155.97 close: 156.55\n",
      "2017-10-11 POSITION value:-156.600 upnl:-0.050 rpnl:11.310\n",
      "2017-10-12 TICK WIKI/AAPL open: 156.35 close: 156.0\n",
      "2017-10-12 POSITION value:-156.600 upnl:-0.600 rpnl:11.310\n",
      "2017-10-13 TICK WIKI/AAPL open: 156.73 close: 156.99\n",
      "2017-10-13 POSITION value:-156.600 upnl:0.390 rpnl:11.310\n",
      "2017-10-16 TICK WIKI/AAPL open: 157.9 close: 159.88\n",
      "2017-10-16 POSITION value:-156.600 upnl:3.280 rpnl:11.310\n",
      "2017-10-17 TICK WIKI/AAPL open: 159.78 close: 160.47\n",
      "2017-10-17 POSITION value:-156.600 upnl:3.870 rpnl:11.310\n",
      "2017-10-18 TICK WIKI/AAPL open: 160.42 close: 159.76\n",
      "2017-10-18 POSITION value:-156.600 upnl:3.160 rpnl:11.310\n",
      "2017-10-19 TICK WIKI/AAPL open: 156.75 close: 155.98\n",
      "2017-10-19 POSITION value:-156.600 upnl:-0.620 rpnl:11.310\n",
      "2017-10-20 TICK WIKI/AAPL open: 156.61 close: 156.16\n",
      "2017-10-20 POSITION value:-156.600 upnl:-0.440 rpnl:11.310\n",
      "2017-10-23 TICK WIKI/AAPL open: 156.89 close: 156.17\n",
      "2017-10-23 POSITION value:-156.600 upnl:-0.430 rpnl:11.310\n",
      "2017-10-24 TICK WIKI/AAPL open: 156.29 close: 157.1\n",
      "2017-10-24 POSITION value:-156.600 upnl:0.500 rpnl:11.310\n",
      "2017-10-25 TICK WIKI/AAPL open: 156.91 close: 156.405\n",
      "2017-10-25 POSITION value:-156.600 upnl:-0.195 rpnl:11.310\n",
      "2017-10-26 TICK WIKI/AAPL open: 157.23 close: 157.41\n",
      "2017-10-26 POSITION value:-156.600 upnl:0.810 rpnl:11.310\n",
      "2017-10-27 TICK WIKI/AAPL open: 159.29 close: 163.05\n",
      "2017-10-27 SELL signal\n",
      "2017-10-27 ORDER SELL WIKI/AAPL 1\n",
      "2017-10-27 POSITION value:-156.600 upnl:6.450 rpnl:11.310\n",
      "2017-10-30 TICK WIKI/AAPL open: 163.89 close: 166.72\n",
      "2017-10-30 FILLED SELL 1 WIKI/AAPL at 163.89\n",
      "2017-10-30 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-10-31 TICK WIKI/AAPL open: 167.9 close: 169.04\n",
      "2017-10-31 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-01 TICK WIKI/AAPL open: 169.87 close: 166.89\n",
      "2017-11-01 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-02 TICK WIKI/AAPL open: 167.64 close: 168.11\n",
      "2017-11-02 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-03 TICK WIKI/AAPL open: 174.0 close: 172.5\n",
      "2017-11-03 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-06 TICK WIKI/AAPL open: 172.365 close: 174.25\n",
      "2017-11-06 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-07 TICK WIKI/AAPL open: 173.91 close: 174.81\n",
      "2017-11-07 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-09 TICK WIKI/AAPL open: 175.11 close: 175.88\n",
      "2017-11-09 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-10 TICK WIKI/AAPL open: 175.11 close: 174.67\n",
      "2017-11-10 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-13 TICK WIKI/AAPL open: 173.5 close: 173.97\n",
      "2017-11-13 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-14 TICK WIKI/AAPL open: 173.04 close: 171.34\n",
      "2017-11-14 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-15 TICK WIKI/AAPL open: 169.97 close: 169.08\n",
      "2017-11-15 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-16 TICK WIKI/AAPL open: 171.18 close: 171.1\n",
      "2017-11-16 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-17 TICK WIKI/AAPL open: 171.04 close: 170.15\n",
      "2017-11-17 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-20 TICK WIKI/AAPL open: 170.29 close: 169.98\n",
      "2017-11-20 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-21 TICK WIKI/AAPL open: 170.78 close: 173.14\n",
      "2017-11-21 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-22 TICK WIKI/AAPL open: 173.36 close: 174.96\n",
      "2017-11-22 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-24 TICK WIKI/AAPL open: 175.1 close: 174.97\n",
      "2017-11-24 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-27 TICK WIKI/AAPL open: 175.05 close: 174.09\n",
      "2017-11-27 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-28 TICK WIKI/AAPL open: 174.3 close: 173.07\n",
      "2017-11-28 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-29 TICK WIKI/AAPL open: 172.63 close: 169.48\n",
      "2017-11-29 BUY signal\n",
      "2017-11-29 ORDER BUY WIKI/AAPL 1\n",
      "2017-11-29 POSITION value:0.000 upnl:0.000 rpnl:7.290\n",
      "2017-11-30 TICK WIKI/AAPL open: 170.43 close: 171.85\n",
      "2017-11-30 FILLED BUY 1 WIKI/AAPL at 170.43\n",
      "2017-11-30 POSITION value:-170.430 upnl:1.420 rpnl:7.290\n",
      "2017-12-01 TICK WIKI/AAPL open: 169.95 close: 171.05\n",
      "2017-12-01 POSITION value:-170.430 upnl:0.620 rpnl:7.290\n",
      "2017-12-04 TICK WIKI/AAPL open: 172.48 close: 169.8\n",
      "2017-12-04 POSITION value:-170.430 upnl:-0.630 rpnl:7.290\n",
      "2017-12-05 TICK WIKI/AAPL open: 169.06 close: 169.64\n",
      "2017-12-05 POSITION value:-170.430 upnl:-0.790 rpnl:7.290\n",
      "2017-12-06 TICK WIKI/AAPL open: 167.5 close: 169.01\n",
      "2017-12-06 POSITION value:-170.430 upnl:-1.420 rpnl:7.290\n",
      "2017-12-07 TICK WIKI/AAPL open: 169.03 close: 169.452\n",
      "2017-12-07 POSITION value:-170.430 upnl:-0.978 rpnl:7.290\n",
      "2017-12-08 TICK WIKI/AAPL open: 170.49 close: 169.37\n",
      "2017-12-08 POSITION value:-170.430 upnl:-1.060 rpnl:7.290\n",
      "2017-12-11 TICK WIKI/AAPL open: 169.2 close: 172.67\n",
      "2017-12-11 POSITION value:-170.430 upnl:2.240 rpnl:7.290\n",
      "2017-12-12 TICK WIKI/AAPL open: 172.15 close: 171.7\n",
      "2017-12-12 POSITION value:-170.430 upnl:1.270 rpnl:7.290\n",
      "2017-12-13 TICK WIKI/AAPL open: 172.5 close: 172.27\n",
      "2017-12-13 POSITION value:-170.430 upnl:1.840 rpnl:7.290\n",
      "2017-12-14 TICK WIKI/AAPL open: 172.4 close: 172.22\n",
      "2017-12-14 POSITION value:-170.430 upnl:1.790 rpnl:7.290\n",
      "2017-12-15 TICK WIKI/AAPL open: 173.63 close: 173.87\n",
      "2017-12-15 POSITION value:-170.430 upnl:3.440 rpnl:7.290\n",
      "2017-12-18 TICK WIKI/AAPL open: 174.88 close: 176.42\n",
      "2017-12-18 POSITION value:-170.430 upnl:5.990 rpnl:7.290\n",
      "2017-12-19 TICK WIKI/AAPL open: 175.03 close: 174.54\n",
      "2017-12-19 POSITION value:-170.430 upnl:4.110 rpnl:7.290\n",
      "2017-12-20 TICK WIKI/AAPL open: 174.87 close: 174.35\n",
      "2017-12-20 POSITION value:-170.430 upnl:3.920 rpnl:7.290\n",
      "2017-12-21 TICK WIKI/AAPL open: 174.17 close: 175.01\n",
      "2017-12-21 POSITION value:-170.430 upnl:4.580 rpnl:7.290\n",
      "2017-12-22 TICK WIKI/AAPL open: 174.68 close: 175.01\n",
      "2017-12-22 POSITION value:-170.430 upnl:4.580 rpnl:7.290\n",
      "2017-12-26 TICK WIKI/AAPL open: 170.8 close: 170.57\n",
      "2017-12-26 POSITION value:-170.430 upnl:0.140 rpnl:7.290\n",
      "2017-12-27 TICK WIKI/AAPL open: 170.1 close: 170.6\n",
      "2017-12-27 POSITION value:-170.430 upnl:0.170 rpnl:7.290\n",
      "2017-12-28 TICK WIKI/AAPL open: 171.0 close: 171.08\n",
      "2017-12-28 POSITION value:-170.430 upnl:0.650 rpnl:7.290\n",
      "2017-12-29 TICK WIKI/AAPL open: 170.52 close: 169.23\n",
      "2017-12-29 POSITION value:-170.430 upnl:-1.200 rpnl:7.290\n",
      "Backtest completed.\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAssAAAHKCAYAAAD1vAbjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4yLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvhp/UCwAAIABJREFUeJzsnXecG9W5939Hoy5t1RZ7d+1dl3WnxDYGguk9QCAk9FySm8JNIY283EsKSSAkb/ISUoEQUshNoYXQDKZj04xxw7gbr+21vd61txdJqzZz3j9mzmgkjaRRXa18vp/PfrxejWaOpNHMc37n9zwPoZSCw+FwOBwOh8PhJGKa6AFwOBwOh8PhcDilCg+WORwOh8PhcDicJPBgmcPhcDgcDofDSQIPljkcDofD4XA4nCTwYJnD4XA4HA6Hw0kCD5Y5HA6Hw+FwOJwk8GCZw+FwOBwOh8NJAg+WOVlDCPkRIeQfRThOGyGEEkLMWTz3LEJIV4rH/0oIuSvLcf1fQsg3s3luqUAI+SUh5EsTPQ4Oh1Mc+HW7LK7bHyeEPDrR4ziW4MFyGUEI6SSEjBNCvISQIULI84SQaTrbfUgImUMIaSGE/JsQ0k8IGSGEbCWEfDbJvlNevI41CCH1AG4E8IcU29QSQp4ihPgIIQcIIden2PZHhJCw8tmxn5kptr9e2aePEPI0IaQ2xbZU2Y7t90+ah+8G8D1CiDX1K+ZwOIWAX7eLh8Hr9s2EkA2EkCAh5K9p9vdZQogYd90+K8m2VkLIE8rnTZNtp9l+NSEkoNnvbvYYpfRZAIsIIcen2gcnf/Bgufy4jFLqBjAVwFEAv9M+SAiZBcBEKf0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IMwxhTZIwpMafq410MFLp/vgXoIiLv45qRuhJOlQrReBrPk/H8edu8Hc+fty0QOeX1dUIeTsjBKXk4IQen5OGEHJyShxNysJWVPW8gGNdl+Pm4l5HEtVJLHHAukKLxNJ4d8fx52/S1tDZeoN2c8vo6IQ8n5OCUPJyQg1PycEIOTsnDCTnYcbO6znIlEArsB3q4P2U8BFQaY74wrmLVGk/j2RHPn7fN2/H8edsCkVNeXyfk4YQcnJKHE3JwSh5OyMEpeTghB+/zwKeOgbhezC+A2zzd29d4Gs+Jsfw9nj9vWyDenPL6OiEPJ+TglDyckINT8nBCDk7Jwwk5ePsm7g23jIikAuOBp4wxJZY+ucbTeD4Sy9/j+fO2BSKnvL5OyMMJOTglDyfk4JQ8nJCDU/JwQg7eZnlnWSmllFJKKX9h9ZhlpZRSSiml/IZ2lpVSSimllKqFdpaVUkoppZSqhXaWlVJKKaWUqoV2lpVSSimllKqFdpaVUkoppZSqhXaWlVJKKaWUqsX/AxNjr4N6tQqXAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 864x576 with 4 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "%matplotlib inline\n",
    "import matplotlib.pyplot as plt\n",
    "\n",
    "fig, axes = plt.subplots(nrows=len(THRESHOLDS)//2, \n",
    "    ncols=2, figsize=(12, 8))\n",
    "fig.subplots_adjust(hspace=0.4)\n",
    "for i, (buy_threshold, sell_threshold) in enumerate(THRESHOLDS):\n",
    "    engine.start(\n",
    "        lookback_intervals=20,\n",
    "        buy_threshold=buy_threshold,\n",
    "        sell_threshold=sell_threshold\n",
    "    )\n",
    "    df_rpnls = engine.df_rpnl\n",
    "    ax = axes[i // 2, i % 2]\n",
    "    ax.set_title(\n",
    "        'B/S thresholds:(%s,%s)' % \n",
    "        (buy_threshold, sell_threshold)\n",
    "    )\n",
    "    df_rpnls.plot(ax=ax)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
